:root {
  --forest: #183c2d;
  --forest-2: #285441;
  --cream: #f6f1e6;
  --paper: #fffdf8;
  --ink: #173028;
  --muted: #66746d;
  --line: #d8ded8;
  --danger: #9f2d2d;
  --shadow: 0 24px 70px rgba(19, 52, 39, .13);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 12% 0%, rgba(87,130,101,.18), transparent 34%), var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.account-header { min-height: 72px; padding: 0 clamp(18px,4vw,56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,253,248,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.account-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.account-brand span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: white; font-family: Georgia, serif; font-weight: 700; }
.account-brand strong { font-family: Georgia, serif; font-size: 1.08rem; }
.back-link { font-weight: 750; text-decoration: none; }
.account-main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: clamp(46px,8vw,90px) 0 80px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr); gap: clamp(36px,7vw,90px); align-items: center; }
.account-welcome h1, .account-card h1, .account-card h2 { font-family: Georgia, serif; }
.account-welcome h1 { max-width: 620px; margin: 10px 0 20px; font-size: clamp(2.7rem,6vw,5.6rem); line-height: .98; letter-spacing: -.04em; }
.account-welcome > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.eyebrow { margin: 0; color: var(--forest-2); font-size: .76rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.role-explainer { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.role-explainer span { display: grid; gap: 3px; min-width: 145px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.57); border: 1px solid rgba(24,60,45,.12); color: var(--muted); font-size: .82rem; }
.role-explainer strong { color: var(--forest); }
.account-card { width: 100%; min-height: 540px; padding: clamp(24px,4vw,40px); border: 1px solid rgba(24,60,45,.13); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.loading-state { min-height: 390px; display: grid; place-items: center; color: var(--muted); }
.account-status { display: none; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: #e8f2eb; color: #16482c; line-height: 1.45; }
.account-status.show { display: block; }
.account-status.error { background: #f9e7e5; color: #7d211d; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: #e9ede7; margin-bottom: 28px; }
.auth-tab { border: 0; border-radius: 10px; padding: 11px; background: transparent; color: var(--muted); font-weight: 800; }
.auth-tab.active { background: white; color: var(--forest); box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.auth-form { display: grid; gap: 17px; }
.auth-form h2 { margin: 0 0 5px; font-size: 2rem; }
.auth-form p { color: var(--muted); line-height: 1.55; }
.auth-form label { display: grid; gap: 7px; font-weight: 760; }
.auth-form input { width: 100%; min-height: 49px; border: 1px solid #bec9c1; border-radius: 11px; padding: 0 13px; background: white; color: var(--ink); }
.auth-form input:focus { outline: 3px solid rgba(50,114,81,.19); border-color: var(--forest-2); }
.auth-form small, .form-note { color: var(--muted); font-size: .8rem; font-weight: 500; }
.remember-field { grid-template-columns: auto 1fr; align-items: center; font-weight: 600 !important; color: var(--muted); }
.remember-field input { width: 20px; min-height: 20px; accent-color: var(--forest); }
.primary-button, .primary-link { min-height: 49px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; background: var(--forest); color: white; text-decoration: none; font-weight: 850; }
.primary-button:disabled { opacity: .58; cursor: wait; }
.secondary-link { min-height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 19px; border: 1px solid var(--line); color: var(--forest); text-decoration: none; font-weight: 800; }
.text-button, .back-button { border: 0; background: none; padding: 8px 0; color: var(--forest-2); font-weight: 800; text-align: left; }
#signed-in-panel h2 { margin: 10px 0 5px; font-size: 2.4rem; }
.profile-email { margin: 0; color: var(--muted); }
.profile-role { display: inline-block; margin: 22px 0 12px; padding: 8px 12px; border-radius: 999px; background: #e4eee7; text-transform: capitalize; }
.profile-help { color: var(--muted); line-height: 1.6; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.account-actions .text-button { width: 100%; margin-top: 8px; }
.reset-main { width: min(560px, calc(100% - 30px)); margin: 0 auto; padding: 70px 0; }
.reset-card { min-height: 0; }
.reset-card h1 { font-size: clamp(2.2rem,8vw,3.6rem); margin: 10px 0 28px; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  .account-main { grid-template-columns: 1fr; padding-top: 40px; }
  .account-welcome h1 { font-size: clamp(3rem,14vw,5rem); }
  .account-card { min-height: 0; }
}
@media (max-width: 520px) {
  .account-header { padding: 0 14px; }
  .account-brand strong { display: none; }
  .back-link { font-size: .86rem; }
  .account-main { width: min(100% - 24px, 1100px); gap: 30px; }
  .role-explainer { display: none; }
  .account-card { padding: 22px 18px; border-radius: 20px; }
  .account-actions > * { width: 100%; }
}
