.auth-page {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 30%, rgba(221, 212, 255, .22), transparent 27%),
    radial-gradient(circle at 90% 25%, rgba(183, 218, 255, .24), transparent 29%),
    #f8faff;
}

.auth-header-inner { justify-content: space-between; }
.auth-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.auth-header-actions .is-current { cursor: default; }
.auth-header-actions .button-ghost.is-current { background: #f3f5fc; }
.auth-header-actions .button-primary.is-current { box-shadow: none; }

.auth-main { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 64px 0 80px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 470px); gap: clamp(40px, 7vw, 108px); align-items: center; }
.auth-intro { min-width: 0; }
.auth-eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5d6881;
  box-shadow: 0 5px 16px rgba(52, 66, 119, .04);
  font-size: 12px;
  font-weight: 700;
}
.auth-intro h1 { max-width: 610px; margin: 22px 0 20px; font-size: clamp(42px, 4.2vw, 62px); font-weight: 800; line-height: 1.06; letter-spacing: -.045em; }
.auth-intro h1 span { color: #506cff; }
.auth-intro > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 14px; margin: 29px 0 34px; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 12px; color: #46516b; font-size: 14px; font-weight: 600; }
.auth-benefits li span { flex: none; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 9px; background: #e9efff; color: #526bfa; font-size: 14px; font-weight: 800; }

.auth-preview { max-width: 420px; padding: 17px; border: 1px solid #dfe5f1; border-radius: 21px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 44px rgba(57, 73, 131, .08); }
.auth-preview-heading { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; color: #34415f; font-size: 12px; font-weight: 800; }
.auth-preview-heading small { margin-left: auto; color: #8a94aa; font-size: 11px; font-weight: 500; }
.auth-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #647dff; box-shadow: 0 0 0 4px #edf0ff; }
.auth-preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auth-preview-metrics div { display: grid; gap: 5px; padding: 12px 10px; border: 1px solid #e9edf6; border-radius: 12px; background: #f8faff; }
.auth-preview-metrics span { color: #7b879d; font-size: 10px; }
.auth-preview-metrics strong { color: #273551; font-size: 14px; white-space: nowrap; }
.auth-preview-sources { display: flex; align-items: center; gap: 7px; padding-top: 14px; color: #737f95; font-size: 10px; }
.auth-preview-sources img { width: 22px; height: 22px; object-fit: contain; }
.auth-preview-sources span { margin-left: auto; }

.auth-panel { width: 100%; min-width: 0; }
.auth-card { width: 100%; padding: 38px 40px 34px; border: 1px solid #e1e7f2; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 24px 60px rgba(52, 66, 119, .11); }
.auth-card-logo { width: 42px; height: 42px; border-radius: 13px; }
.auth-card h2 { margin: 24px 0 8px; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.auth-card-subtitle { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-form { display: grid; gap: 20px; margin-top: 30px; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-bottom: 9px; color: #34405a; font-size: 13px; font-weight: 700; }
.auth-field input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #dce3ee;
  border-radius: 13px;
  outline: none;
  background: #fbfcff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-field input::placeholder { color: #a0a9ba; }
.auth-field input:not([type="checkbox"]):focus { border-color: #637cff; background: #fff; box-shadow: 0 0 0 4px rgba(92, 119, 255, .13); }
.auth-field input[aria-invalid="true"] { border-color: #e7909c; }
.auth-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(231, 144, 156, .14); }
.auth-error { margin: 7px 1px 0; color: #c0475b; font-size: 12px; line-height: 1.4; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 54px !important; }
.auth-password-toggle { position: absolute; top: 4px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #7b87a0; cursor: pointer; }
.auth-password-toggle:hover { background: #eef2ff; color: #536cf4; }
.auth-password-toggle:focus-visible { outline: 3px solid #9cb6ff; outline-offset: 1px; }
.auth-password-toggle svg { width: 21px; height: 21px; }
.auth-password-toggle svg[hidden] { display: none; }
.auth-form-options { display: flex; align-items: center; min-height: 22px; margin-top: -3px; }
.auth-remember { display: inline-flex; align-items: center; gap: 9px; color: #5d6980; font-size: 13px; cursor: pointer; }
.auth-remember input { width: 17px; height: 17px; margin: 0; accent-color: #5b71f5; }
.auth-submit { width: 100%; min-height: 54px; margin-top: 2px; border-radius: 14px; font-size: 15px; cursor: pointer; }
.auth-submit:active { transform: translateY(0); }
.auth-switch { margin: 24px 0 0; color: #748097; text-align: center; font-size: 13px; }
.auth-switch a { color: #4d67ec; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.auth-safety { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: #78849c; text-align: center; font-size: 11px; }
.auth-safety span { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #30bf91; box-shadow: 0 0 0 4px #e5f8f1; }

@media (max-width: 900px) {
  .auth-main { align-items: flex-start; padding: 48px 0 70px; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; max-width: 590px; }
  .auth-panel { order: -1; }
  .auth-intro { text-align: center; }
  .auth-intro h1 { max-width: none; font-size: 42px; }
  .auth-intro > p { margin: 0 auto; }
  .auth-benefits { max-width: 430px; margin: 24px auto 0; text-align: left; }
  .auth-preview { display: none; }
}

@media (max-width: 600px) {
  .auth-page .container { width: min(100% - 32px, 540px); }
  .auth-header-inner { height: 66px; }
  .auth-header-login { display: none; }
  .auth-header-actions .button { padding: 9px 11px; font-size: 11px; }
  .auth-main { min-height: calc(100vh - 66px); padding: 26px 0 52px; }
  .auth-grid { gap: 36px; }
  .auth-card { padding: 28px 22px 26px; border-radius: 22px; }
  .auth-card h2 { margin-top: 20px; font-size: 27px; }
  .auth-form { gap: 18px; margin-top: 26px; }
  .auth-intro h1 { font-size: 34px; }
  .auth-intro > p { font-size: 14px; }
  .auth-benefits li { font-size: 12px; }
}

@media (max-width: 370px) {
  .auth-page .brand-copy small { display: none; }
  .auth-card { padding-inline: 18px; }
  .auth-safety { font-size: 10px; }
}
