.auth-page { width: min(456px, calc(100% - 32px)); padding-top: 45px; padding-bottom: 28px; margin-inline: auto; }
.auth-page .back-link { margin-bottom: 23px; }
.auth-card { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-top-color: #8d7c59; border-radius: 12px; }
.auth-card h1 { font-size: 25px; line-height: 1.4; margin-bottom: 28px; }
.auth-form { display: grid; gap: 22px; }
.auth-field label { display: block; margin-bottom: 9px; color: #c5cddb; font-size: 15px; }
.auth-field input { width: 100%; min-width: 0; height: 52px; background: var(--inset); color: var(--text); border: 1px solid #526079; border-radius: 7px; font-size: 17px; padding: 0 14px; }
.auth-field input::placeholder { color: #8e9ab2; }
.password-heading { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.password-heading a { color: #b6c9ff; font-size: 13px; }
.password-heading a:hover, .auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-toggle { position: absolute; inset: 4px 4px 4px auto; width: 44px; background: transparent; border: 0; border-radius: 5px; color: #c5cddb; display: grid; place-items: center; }
.password-toggle:hover { background: #2b354a; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.auth-form .primary { justify-content: center; width: 100%; margin-top: 4px; }
.auth-switch { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.auth-switch a { color: #b6c9ff; margin-left: 5px; white-space: nowrap; }
.auth-status { margin: 20px 0 0; padding: 14px; border: 1px solid #657087; border-radius: 7px; background: var(--inset); color: #d6deeb; font-size: 14px; line-height: 1.65; }
@media (max-width: 700px) {
  .auth-page { padding-top: 24px; }
  .auth-card { padding: 23px 20px; }
  .auth-card h1 { font-size: 23px; margin-bottom: 25px; }
  .auth-form { gap: 20px; }
  .auth-field input { font-size: 16px; }
}

.auth-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--inset);
  color: var(--text);
  border: 1px solid #526079;
  border-radius: 7px;
  font: inherit;
  resize: vertical;
}
.auth-providers { display: grid; gap: 10px; }
.auth-providers button { width: 100%; }
