:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f5f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
a { color: inherit; }
.hidden { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(520px, 1.08fr);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px clamp(38px, 5vw, 84px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(108, 142, 255, .46), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(96, 234, 204, .16), transparent 30%),
    linear-gradient(148deg, #0c1732 0%, #152b61 55%, #315bd5 100%);
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -260px;
  bottom: -180px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.03), 0 0 0 110px rgba(255,255,255,.025);
}

.auth-logo { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.auth-logo img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.brand-copy { position: relative; z-index: 1; margin: auto 0; max-width: 570px; }
.brand-copy > p { margin: 0 0 18px; color: #a9c0ff; font-size: 15px; font-weight: 700; letter-spacing: .18em; }
.brand-copy h1 { margin: 0; font-size: clamp(38px, 4.2vw, 66px); line-height: 1.14; letter-spacing: -.055em; }
.brand-copy ul { display: grid; gap: 20px; margin: 54px 0 0; padding: 0; list-style: none; }
.brand-copy li { display: flex; align-items: center; gap: 15px; color: #c8d6fa; font-size: 14px; line-height: 1.6; }
.brand-copy li i { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #8fb0ff; font-size: 11px; font-style: normal; font-weight: 800; }
.brand-copy li strong { display: block; color: #fff; font-size: 16px; }
.brand-foot { position: relative; z-index: 1; margin: 30px 0 0; color: rgba(255,255,255,.5); font-size: 12px; }

.auth-panel { display: grid; place-items: center; padding: 50px 26px; background: radial-gradient(circle at 72% 18%, #eef3ff 0, transparent 32%), #f7f8fb; }
.auth-card { width: min(100%, 440px); padding: 42px; border: 1px solid #e5e9f2; border-radius: 26px; background: rgba(255,255,255,.93); box-shadow: 0 26px 80px rgba(29,45,89,.09); backdrop-filter: blur(12px); }
.auth-card header { margin-bottom: 30px; }
.auth-kicker { display: block; margin-bottom: 8px; color: #315bd5; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.auth-card h2 { margin: 0; color: #10182a; font-size: 30px; letter-spacing: -.035em; }
.auth-card header p { margin: 12px 0 0; color: #778197; font-size: 14px; line-height: 1.7; }
.auth-card form { display: grid; gap: 18px; }
.auth-card label { display: grid; gap: 8px; }
.auth-card label span { color: #303a50; font-size: 13px; font-weight: 700; }
.auth-card input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid #dce1eb; border-radius: 12px; outline: none; background: #fbfcfe; color: #172033; font: inherit; transition: border .18s, box-shadow .18s, background .18s; }
.auth-card input:focus { border-color: #6283e9; background: #fff; box-shadow: 0 0 0 4px rgba(49,91,213,.10); }
.auth-card small { color: #8a94a8; font-size: 12px; }
.auth-status { min-height: 20px; margin: -4px 0 -6px; color: #d34848; font-size: 13px; line-height: 1.5; }
.auth-status.success { color: #178356; }
.auth-submit { height: 52px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #315bd5, #567dec); box-shadow: 0 12px 25px rgba(49,91,213,.23); cursor: pointer; font: inherit; font-weight: 800; transition: transform .16s, opacity .16s; }
.auth-submit:hover { transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .62; transform: none; }
.auth-switch { margin: 25px 0 0; color: #778197; text-align: center; font-size: 14px; }
.auth-switch a, .auth-card footer a { color: #315bd5; font-weight: 700; text-decoration: none; }
.auth-card footer { margin-top: 30px; padding-top: 22px; border-top: 1px solid #edf0f5; color: #9aa2b1; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 270px; padding: 28px; }
  .brand-copy { margin: 50px 0 20px; }
  .brand-copy h1 { font-size: 38px; }
  .brand-copy ul, .brand-foot { display: none; }
  .auth-panel { padding: 30px 18px 48px; }
}

@media (max-width: 520px) {
  .auth-brand { min-height: 225px; }
  .brand-copy { margin-top: 36px; }
  .brand-copy h1 { font-size: 31px; }
  .auth-card { padding: 30px 22px; border-radius: 20px; }
}
