/* login page. tokens, inputs, buttons and rows come from dashboard.css; this file only lays out the auth screen. */

body.auth { min-height: 100dvh; }
.auth-shell {
  min-height: 100dvh;
  display: flex; justify-content: center; align-items: flex-start;
  padding: calc(16px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; height: 56px; margin-bottom: 24px; }
.auth-step h1 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.auth-sub { color: var(--text-2); font-size: 15px; margin: 6px 0 24px; }

/* steps after the first are hidden until login.js shows them */
.twofa-card { display: none; }

.error-msg {
  display: none; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger); font-size: 14px;
}
.error-msg.ok { background: var(--ok-soft); color: var(--ok); }

.link-btn { font-size: 13px; color: var(--accent-text); font-weight: 500; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: -4px 0 12px -6px; padding: 0 8px 0 6px;
  border-radius: 8px; color: var(--text-2); font-size: 14px;
}
.back-btn:hover { background: var(--surface-2); color: var(--text); }
.back-btn .svg-icon { width: 16px; height: 16px; }

.input.otp {
  height: 56px; text-align: center; font-family: var(--mono); font-size: 24px; font-weight: 500;
  letter-spacing: 0.4em; padding-left: calc(12px + 0.4em);
}
.input.otp::placeholder { color: var(--text-3); opacity: 0.5; }

.facts { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--text-3); }
.facts dd { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#sessionDurationRow .input { width: 132px; flex-shrink: 0; }

@media (min-width: 560px) {
  .auth-shell { align-items: center; padding-top: 24px; }
  .auth-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet);
    padding: 8px 32px 32px;
  }
  .auth-card .group { background: var(--surface-2); }
  .auth-card .input { background: var(--surface-2); }
}
