/* Sign in, create account, forgot / set new password, password updated (nextpdf boards). */

.page-auth { background: #f1f1f0; }
.auth {
  display: grid; place-items: center;
  min-height: calc(100vh - 80px - 64px);
  min-height: calc(100dvh - 80px - 64px);
  padding: 96px 16px;
}
.auth-card { width: 100%; max-width: 480px; padding: 42px; border-radius: 20px; background: #fff; }

.auth-kicker {
  display: inline-block; padding: 7px 10px; border-radius: 6px;
  background: #ddfaf6; color: var(--teal-dark);
  font-size: 10px; font-weight: 500; letter-spacing: .2em;
}
.auth-card .si-icon { margin-bottom: 22px; }
.auth-card h1 { margin: 18px 0 0; font-family: var(--font-display); font-size: 35px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.auth-card .si-icon + h1 { margin-top: 0; }
.auth-lede { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.auth-lede b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth-back:hover { color: var(--ink); }

.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.auth-social .btn { height: 44px; font-size: 14.5px; font-weight: 700; }
.auth-card .or-line { margin: 26px 0 22px; }
.auth-card .or-line .mono { font-size: 9.5px; letter-spacing: .22em; }

.auth-form { margin-top: 28px; }
.auth-social + .or-line + .auth-form, .or-line + .auth-form { margin-top: 0; }
.auth-field { display: block; margin-bottom: 20px; }
.auth-field .input { height: 48px; border-radius: 12px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row .field-label { margin-bottom: 8px; }
.auth-label-row a { font-size: 12.5px; font-weight: 600; color: var(--teal-dark); }
.auth-label-row a:hover { text-decoration: underline; }
.auth-hint { font-size: 12.5px; color: #8d8d90; }

/* Primary button: label centred, mint arrow pinned right */
.auth-submit { position: relative; width: 100%; height: 46px; margin-top: 6px; padding: 0 52px; }
.auth-submit .arr { position: absolute; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; }
.auth-submit:hover .arr { transform: translateX(2px); }

.auth-switch { margin: 24px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 700; color: var(--teal-dark); }
.auth-switch a:hover { text-decoration: underline; }
.auth-terms { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #8d8d90; text-align: center; }
.auth-terms a { color: var(--body); }
.auth-terms a:hover { text-decoration: underline; }

/* Email verification code (verify-email.php) */
.code-input { height: 56px !important; text-align: center; font-family: var(--font-mono); font-size: 24px; letter-spacing: .5em; padding-left: calc(14px + .5em); }
.code-input::placeholder { letter-spacing: .5em; }
.link-btn { font-weight: 700; color: var(--teal-dark); }
.link-btn:hover { text-decoration: underline; }

/* Form-level messages */
.auth-alert { display: flex; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: #fdf0f0; color: #9f1d1d; font-size: 13.5px; line-height: 1.5; }
.auth-alert a { font-weight: 700; text-decoration: underline; }
.auth-notice { margin-top: 22px; padding: 14px 16px; border: 1px dashed #8fe6dc; border-radius: 12px; background: var(--mint-soft); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.auth-notice .mono { display: block; margin-bottom: 6px; font-size: 9.5px; color: var(--teal-dark); }
.auth-notice a { font-weight: 700; color: var(--teal-dark); text-decoration: underline; overflow-wrap: anywhere; }

/* Password strength meter */
.pw-meter { margin-top: 12px; }
.pw-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw-bars i { height: 4px; border-radius: 2px; background: #ecebe6; transition: background .2s; }
.pw-meter[data-score="1"] .pw-bars i:nth-child(-n+1) { background: #f59e6b; }
.pw-meter[data-score="2"] .pw-bars i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-score="3"] .pw-bars i:nth-child(-n+3),
.pw-meter[data-score="4"] .pw-bars i { background: var(--mint); }
.pw-label { display: block; min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.pw-meter[data-score="3"] .pw-label, .pw-meter[data-score="4"] .pw-label { color: var(--teal-dark); }

/* Setup check (db-check.php) */
.auth-card.wide { max-width: 560px; }
.si-icon.bad { background: #fde2e2; color: #b91c1c; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid #efefed; }
.check-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #efefed; }
.check-list b { display: block; font-size: 14.5px; font-weight: 600; }
.check-list small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.check-dot { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 800; }
.check-dot.ok { background: var(--mint); color: var(--ink); }
.check-dot.warn { background: #ffe9b8; color: #8a5a00; }
.check-dot.fail { background: #fde2e2; color: #b91c1c; }

@media (max-width: 560px) {
  .auth { padding: 40px 16px; align-items: start; }
  .auth-card { padding: 30px 22px; border-radius: 18px; }
  .auth-card h1 { font-size: 30px; }
}
