.auth-page {
  background: radial-gradient(ellipse at center 20%, #e8edff 0, #f2f5fa 58%);
}

.auth-main {
  display: grid;
  min-height: calc(100svh - 65px);
  place-items: center;
  padding: 36px 18px;
}

.auth-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px #15234812, 0 2px 7px #15234808;
}

.auth-title { margin-bottom: 25px; color: var(--ink); font-size: 28px; font-weight: 760; line-height: 1.24; letter-spacing: -.025em; }
.auth-form, .auth-field { display: grid; }
.auth-form { gap: 17px; }
.auth-field { gap: 6px; }
.auth-label { color: #243650; font-size: 14px; font-weight: 690; }
.auth-input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cdd7e6; border-radius: 8px; padding: 9px 12px; background: #fff; color: var(--ink); font-size: 16px; }
.auth-input:focus { border-color: #687cda; outline: 2px solid #dbe2ff; outline-offset: 1px; }
.auth-input[aria-invalid="true"] { border-color: #c53c60; }
.auth-password-field { position: relative; }
.auth-password-field .auth-input { padding-right: 88px; }
.auth-password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); padding: 5px 7px; border: 0; border-radius: 5px; background: transparent; color: #4055ba; font-size: 12px; font-weight: 680; white-space: nowrap; }
.auth-password-toggle:hover { background: #edf1ff; }
.auth-error { border: 1px solid #f5d1dd; border-radius: 7px; padding: 7px 10px; background: #fff2f5; color: #962444; font-size: 13px; }
.auth-submit { min-height: 43px; margin-top: 2px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
.auth-submit:hover { background: #2f42ac; }
.auth-submit:disabled { opacity: .55; }

@media (max-width: 660px) {
  .auth-page .topbar-content { display: flex; align-items: center; min-height: 54px; padding: 0 15px; }
  .auth-main { min-height: calc(100svh - 55px); padding: 24px 15px; }
  .auth-card { padding: 25px 22px; }
  .auth-title { font-size: 25px; }
}
