:root { color-scheme: light; font-family: var(--pg-font-family); color: var(--pg-ink); background: var(--pg-auth-bg); }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 12% 8%, var(--pg-auth-mint) 0, transparent 34%), radial-gradient(circle at 90% 92%, var(--pg-auth-peach) 0, transparent 31%), var(--pg-auth-bg); }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 38px; border: 1px solid rgba(23,63,54,.12); border-radius: var(--pg-radius-hero); background: rgba(255,255,255,.86); box-shadow: var(--pg-shadow-auth); backdrop-filter: blur(14px); }
.brand-lockup { display: flex; align-items: center; gap: 10px; direction: ltr; margin-bottom: 44px; font-size: 20px; }
.brand-lockup strong { font-size: 22px; }.brand-lockup small { color: #7a9c8b; font-size: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px 5px 15px 15px; color: var(--pg-ink); background: #a9e3c1; font-size: 16px; font-weight: 900; }
.eyebrow { margin: 0 0 8px; color: var(--pg-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: 30px; }
.intro { margin: 10px 0 26px; color: var(--pg-muted); font-size: 12px; line-height: 2; }
form { display: grid; gap: 16px; }
label { color: var(--pg-muted); font-size: 11px; font-weight: 800; }
input { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-control); outline: 0; color: var(--pg-ink); background: #f7fbf8; font: inherit; direction: ltr; text-align: left; }
input:focus { border-color: #68a98c; box-shadow: var(--pg-focus-ring); }
.login-button, .login-form button { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 8px; padding: 0 17px; border: 0; border-radius: var(--pg-radius-control); color: #fff; background: var(--pg-primary-strong); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s, opacity .18s; }
.login-button:hover, .login-form button:hover { transform: translateY(-1px); }.login-button:disabled, .login-form button:disabled { opacity: .6; cursor: wait; }
.login-alert { margin: 0 0 17px; padding: 11px 13px; border: 1px solid #f1c5bd; border-radius: var(--pg-radius-control); color: var(--pg-danger); background: #fff1ee; font-size: 11px; line-height: 1.8; }
.create-account-button { display: flex; align-items: center; justify-content: space-between; height: 50px; margin-top: 12px; padding: 0 17px; border: 1px solid #75a990; border-radius: var(--pg-radius-control); color: var(--pg-ink); background: #f1faf5; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .18s, background .18s; }
.create-account-button:hover { transform: translateY(-1px); background: #e4f5eb; }
.create-account-button:focus-visible { outline: 3px solid rgba(74,151,116,.28); outline-offset: 2px; }
.app-download-link { width: 100%; margin-top: 12px; text-decoration: none; }
.app-download-link:hover { background: var(--pg-surface-soft); }
.account-actions { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 11px; font-weight: 800; }
.account-actions a { color: var(--pg-primary); text-decoration: none; }
.account-actions a:hover { color: var(--pg-ink); text-decoration: underline; }
.admin-otp-toggle { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 0; color: var(--pg-primary); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-otp-toggle:hover { color: var(--pg-ink); text-decoration: underline; }
.optional-label { color: #8ba095; font-size: 10px; font-weight: 400; }
.role-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.role-picker legend { margin-bottom: 8px; color: var(--pg-muted); font-size: 11px; font-weight: 800; }
.role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-option { position: relative; display: block; cursor: pointer; }
.role-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.role-option > span { display: grid; min-height: 76px; align-content: center; gap: 5px; padding: 11px 12px; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-control); color: var(--pg-muted); background: #f7fbf8; transition: border-color .18s, background .18s, box-shadow .18s; }
.role-option strong { color: var(--pg-ink); font-size: 12px; }
.role-option small { font-size: 9px; font-weight: 400; line-height: 1.7; }
.role-option input:checked + span { border-color: var(--pg-primary); background: #eaf7ef; box-shadow: inset 0 0 0 1px var(--pg-primary); }
.role-option input:focus-visible + span { outline: 3px solid rgba(74,151,116,.28); outline-offset: 2px; }
.role-help { margin: 8px 1px 0; color: var(--pg-muted); font-size: 10px; line-height: 1.8; }
.reset-info { margin-top: 0; border-color: #d5e5db; color: #466e5c; background: #f2faf5; }
.reset-steps { margin-top: 18px; padding: 14px 16px; border-radius: 13px; color: #587267; background: #f7fbf8; font-size: 11px; line-height: 2; }
.reset-steps ol { margin: 7px 0 0; padding-right: 20px; }
.security-note { margin: 22px 0 0; color: #8ba095; font-size: 10px; line-height: 1.9; }
body { overflow-x: clip; }
.login-card, form, label { min-width: 0; }
.intro, .login-alert, .reset-steps, .security-note { overflow-wrap: anywhere; }
.account-actions { flex-wrap: wrap; }
.account-actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 4px 6px; }
@media (max-width: 480px) {
  .login-shell { place-items: start center; padding: 12px; }
  .login-card { padding: 28px 22px; border-radius: 22px; }
  .brand-lockup { margin-bottom: 34px; }
  .role-options { grid-template-columns: 1fr; }
  .role-option > span { min-height: 66px; }
  .account-actions { display: grid; grid-template-columns: 1fr; gap: 4px; }
}
