.auth-site {
  min-width: 1024px;
  min-height: 100vh;
  color: #111c34;
  background: #f7f9fc;
  font-family: Inter, "Noto Sans SC", sans-serif;
}

.auth-site .skip-link { background: #fff; color: #0d1b46; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(430px, 41.6667%) minmax(594px, 58.3333%);
  min-height: 900px;
  height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 900px;
  padding: 52px 64px 44px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #071334 0%, #0e2458 48%, #163ea8 100%);
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  top: -270px;
  right: -195px;
  border: 74px solid rgba(105, 145, 255, .07);
  border-radius: 50%;
}

.auth-brand__glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(1px); }
.auth-brand__glow--top { width: 420px; height: 420px; top: -170px; left: -180px; background: radial-gradient(circle, rgba(55,105,255,.32) 0, rgba(55,105,255,0) 68%); }
.auth-brand__glow--bottom { width: 520px; height: 520px; right: -250px; bottom: -270px; background: radial-gradient(circle, rgba(58,122,255,.44) 0, rgba(58,122,255,0) 68%); }

.auth-brand__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  color: #fff;
  letter-spacing: .12em;
  font: 700 19px/1 Sora, Inter, sans-serif;
}

.auth-brand__logo > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 13px;
  background: linear-gradient(135deg, #3d73ff, #244bd7);
  box-shadow: 0 10px 24px rgba(6,18,54,.26);
  font-size: 22px;
}

.auth-brand__content { position: relative; z-index: 1; margin: auto 0; max-width: 430px; }
.auth-brand__content h1 { max-width: 410px; font: 700 48px/1.18 Sora, Inter, sans-serif; letter-spacing: -.04em; }
.auth-brand__content > p { max-width: 420px; margin-top: 22px; color: #c9d8f6; font-size: 16px; line-height: 1.75; }
.auth-brand__content ul { display: grid; gap: 22px; margin-top: 46px; list-style: none; }
.auth-brand__content li { display: flex; align-items: center; gap: 15px; color: #eef4ff; font-size: 14px; font-weight: 500; }
.auth-brand__content li > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(157,184,255,.22); border-radius: 12px; background: rgba(111,146,244,.11); }
.auth-brand__content li img { width: 20px; height: 20px; object-fit: contain; }
.auth-brand__lock::before { content: ""; width: 14px; height: 12px; border: 2px solid #92b2ff; border-radius: 3px; transform: translateY(3px); }
.auth-brand__lock::after { content: ""; position: absolute; width: 9px; height: 8px; margin-top: -9px; border: 2px solid #92b2ff; border-bottom: 0; border-radius: 8px 8px 0 0; }
.auth-brand__privacy { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #9eb4df; font-size: 11px; line-height: 1.5; }
.auth-brand__privacy span { color: #7fa3f9; font-size: 18px; }

.auth-panel { position: relative; display: grid; place-items: center; min-height: 900px; padding: 76px 80px 52px; background: #f8fafc; }
.auth-panel__language { position: absolute; top: 34px; right: 45px; }
.auth-card { width: 520px; padding: 44px 48px 38px; border: 1px solid #e6ebf2; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(14, 31, 71, .09); }
.auth-card__heading { margin-bottom: 28px; text-align: center; }
.auth-card__heading h2 { color: #111b32; font: 700 30px/1.3 Sora, Inter, "Noto Sans SC", sans-serif; letter-spacing: -.03em; }
.auth-card__heading p { margin: 10px auto 0; color: #718096; font-size: 13px; line-height: 1.6; }

.auth-socials { display: grid; grid-template-columns: 1fr; }
.auth-socials [hidden] { display: none !important; }
.auth-socials__google { display: flex; align-items: center; justify-content: center; min-height: 44px; overflow: hidden; }
.auth-socials__google > div { max-width: 100%; }
.auth-socials__google iframe { max-width: 100% !important; }
.auth-socials button { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 13px; border: 1px solid #dce3ed; border-radius: 10px; color: #28354b; background: #fff; font-size: 12px; font-weight: 600; }
.auth-socials button:disabled { cursor: not-allowed; opacity: .56; background: #fafbfc; }
.auth-socials img { width: 18px; height: 18px; object-fit: contain; }
.auth-socials small { display: none; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: #9aa6b6; font-size: 11px; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ""; width: 100%; height: 1px; background: #e5e9f0; }

.auth-alert { margin: 0 0 18px; padding: 11px 14px; border: 1px solid #f6c8c5; border-radius: 9px; color: #a8322b; background: #fff5f4; font-size: 12px; line-height: 1.55; }
.auth-success { display: grid; gap: 7px; margin: 24px 0 28px; padding: 16px 18px; border: 1px solid #bfe5d4; border-radius: 12px; color: #276852; background: #effaf5; font-size: 13px; line-height: 1.6; }
.auth-success strong { color: #145b43; font-size: 15px; }

.auth-form { display: grid; gap: 17px; }
.auth-form > label { display: grid; gap: 8px; color: #29364b; font-size: 12px; font-weight: 600; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  color: #172239;
  background: #fff;
  font-size: 13px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-form input::placeholder { color: #a2adbc; }
.auth-form input:focus { border-color: #4b72f8; box-shadow: 0 0 0 3px rgba(57,96,240,.12); }
.auth-field-error { display: none; margin-top: -2px; color: #ef4444; font-size: 11px; line-height: 1.5; font-weight: 500; }
.auth-field.is-invalid > input,
.auth-field.is-invalid .auth-password > input,
.auth-field.is-invalid .auth-code > input { border-color: #ff5b5b; box-shadow: 0 0 0 3px rgba(255,91,91,.08); }
.auth-field.is-invalid > input:focus,
.auth-field.is-invalid .auth-password > input:focus,
.auth-field.is-invalid .auth-code > input:focus { border-color: #ff4d4f; box-shadow: 0 0 0 3px rgba(255,77,79,.12); }
.auth-field.is-invalid > .auth-field-error { display: block; }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 46px !important; }
.auth-password button { position: absolute; top: 5px; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; color: #8c99aa; background: transparent; font-size: 14px; }
.auth-password button.is-visible { color: #315ff4; }
.auth-hint { display: block; margin-top: -10px; color: #8c98aa; font-size: 10px; line-height: 1.45; }
.auth-code { position: relative; display: block; }
.auth-code input { padding-right: 122px !important; letter-spacing: .16em; }
.auth-code button { position: absolute; top: 5px; right: 6px; min-width: 108px; height: 38px; padding: 0 12px; border: 0; border-radius: 7px; color: #315ff4; background: #eef3ff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.auth-code button:hover:not(:disabled) { background: #e2eaff; }
.auth-code button:disabled { color: #8b98aa; cursor: not-allowed; }
[data-registration-code-status] { min-height: 14px; color: #66758b; font-size: 10px; font-weight: 400; line-height: 1.4; }
[data-registration-code-status][data-state="success"] { color: #18794e; }
[data-registration-code-status][data-state="error"] { color: #b42318; }
.auth-email-note { margin-top: -8px; color: #7b8798; font-size: 10px; }
.auth-form__options { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; color: #546176; font-size: 11px; }
.auth-form__options > a { color: #315ff4; font-weight: 600; }
.auth-check { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; margin: 0; accent-color: #315ff4; }
.auth-primary { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 50px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(95deg, #315ff4, #2449d8); box-shadow: 0 10px 24px rgba(48,92,240,.2); font-size: 14px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.auth-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(48,92,240,.27); }
.auth-primary:disabled { color: #94a2b7; background: #e7ebf2; box-shadow: none; cursor: not-allowed; transform: none; }
.auth-legal { margin: 16px auto 0; color: #8a96a7; font-size: 9px; line-height: 1.6; text-align: center; }
.auth-legal a { color: #315ff4; }
.auth-switch { margin-top: 23px; color: #758195; font-size: 12px; text-align: center; }
.auth-switch a { margin-left: 4px; color: #315ff4; font-weight: 700; }

.auth-language { display: flex; align-items: center; gap: 8px; color: #7b8798; font-size: 11px; }
.auth-language details { position: relative; }
.auth-language summary { min-width: 42px; padding: 7px 10px; border: 1px solid #dce3ed; border-radius: 8px; color: #34435b; background: #fff; list-style: none; text-align: center; font-weight: 700; }
.auth-language summary::-webkit-details-marker { display: none; }
.auth-language details > div { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; width: 124px; padding: 7px; border: 1px solid #dce3ed; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(13,27,70,.13); }
.auth-language details a { padding: 8px 9px; border-radius: 6px; color: #41506a; }
.auth-language details a:hover { color: #315ff4; background: #eef4ff; }

.auth-site--register .auth-card { padding-top: 35px; padding-bottom: 28px; }
.auth-site--register .auth-card__heading { margin-bottom: 22px; }
.auth-site--register .auth-card__heading h2 { font-size: 27px; }
.auth-site--register .auth-form { gap: 13px; }
.auth-site--register .auth-form input[type="text"], .auth-site--register .auth-form input[type="email"], .auth-site--register .auth-form input[type="password"] { height: 45px; }
.auth-site--register .auth-card { max-height: calc(100vh - 54px); overflow-y: auto; }

.auth-recover { min-height: 100vh; background: #f6f8fc; }
.auth-recover__header { height: 96px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.auth-recover__header-inner { display: flex; align-items: center; justify-content: space-between; width: min(1200px, calc(100% - 64px)); height: 100%; margin: 0 auto; }
.auth-recover__header-inner > a img { width: 167px; height: 49px; object-fit: contain; }
.auth-recover__main { display: grid; place-items: center; min-height: calc(100vh - 96px); padding: 54px 24px; }
.auth-recover__card { width: 600px; min-height: 470px; padding: 48px 64px; border: 1px solid #e2e7ef; border-radius: 22px; background: #fff; box-shadow: 0 22px 55px rgba(16,35,73,.08); text-align: center; }
.auth-recover__icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#376dff,#254bdb); box-shadow: 0 10px 25px rgba(48,96,244,.24); font-size: 24px; }
.auth-recover__card h1 { color: #111c34; font: 700 28px/1.35 Sora, Inter, "Noto Sans SC", sans-serif; }
.auth-recover__card > p { max-width: 410px; margin: 12px auto 25px; color: #7a8799; font-size: 13px; line-height: 1.65; }
.auth-recover__email { display: block; margin-top: 3px; color: #5e6e85; font-weight: 500; overflow-wrap: anywhere; }
.auth-form--recover { gap: 19px; text-align: left; }
.auth-form--recover .auth-primary { margin-top: 3px; }
.auth-recover__card--check, .auth-recover__card--reset { min-height: 520px; }
.auth-recovery-code { letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.auth-recovery-resend { display: grid; gap: 5px; margin-top: -3px; color: #718096; font-size: 11px; line-height: 1.5; text-align: center; }
.auth-recovery-resend button { justify-self: center; padding: 0; border: 0; color: #315ff4; background: transparent; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-recovery-resend button:disabled { color: #8794a6; cursor: not-allowed; text-decoration: none; }
.auth-recovery-status { min-height: 18px; margin-top: -8px; color: #66758b; font-size: 11px; line-height: 1.5; text-align: center; }
.auth-recovery-status[data-state="success"] { color: #18794e; }
.auth-recovery-status[data-state="error"] { color: #b42318; }
.auth-reset-form .auth-hint { margin-top: -10px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; color: #315ff4; font-size: 12px; font-weight: 700; }

@media (max-height: 820px) {
  .auth-shell, .auth-brand, .auth-panel { min-height: 820px; }
  .auth-brand { padding-top: 38px; padding-bottom: 30px; }
  .auth-brand__content ul { margin-top: 30px; gap: 15px; }
  .auth-card { transform: scale(.92); }
}
