/* =========================================================
   Login — page-specific styles
   Depends on: css/global.css (load it first for tokens/reset/.btn/.field)
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }

.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.auth-subtext { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.auth-step { display: none; }
.auth-step.active { display: block; }

/* Numeric code input */
.code-input {
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 22px;
  font-weight: 600;
}

.auth-resend { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }
.auth-resend button {
  background: none; border: none; color: var(--gold-light);
  font-weight: 600; font-size: inherit; cursor: pointer; padding: 0;
}
.auth-resend button:disabled { color: var(--text-muted); cursor: not-allowed; }

.auth-message {
  font-size: 13px; border-radius: 10px; padding: 10px 14px;
  margin-bottom: 18px; text-align: left;
}
.auth-message.error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #FCA5A5; }
.auth-message.success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.4); color: var(--green); }

.auth-divider { border-top: 1px solid rgba(255,255,255,0.08); margin: 26px 0 18px; }

.auth-help { font-size: 12.5px; color: var(--text-muted); }
.auth-help a {
  color: var(--gold-light); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
}
.auth-help a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-page { padding: 16px; align-items: flex-start; padding-top: 48px; }
  .auth-card { max-width: 100%; }
  .auth-logo { width: 52px; height: 52px; margin-bottom: 16px; }
  .auth-title { font-size: 18px; }
  .code-input { font-size: 18px; letter-spacing: 0.35em; }
}
