:root { color-scheme: light; --ink:#0b3a2c; --muted:#5d7268; --paper:#e6f4ec; --card:#fff; --line:#cfe3d7; --accent:#11845c; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at 15% 15%, #f4fbf7, transparent 40%), linear-gradient(160deg, #d6eee0, #eef8f2), var(--paper); }
button, input { font: inherit; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(430px, 100%); padding: clamp(28px, 6vw, 48px); background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 70px rgb(16 44 35 / 12%); }
.mark { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: var(--ink); font-weight: 900; }
.eyebrow { margin: 26px 0 8px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(27px, 6vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.intro { margin: 12px 0 26px; color: var(--muted); }
form { display: grid; gap: 16px; }
label { color: var(--muted); font-size: 12px; font-weight: 750; }
input { width: 100%; height: 46px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; }
input:focus { outline: 3px solid rgb(17 132 92 / 20%); border-color: var(--accent); }
button { height: 47px; border: 0; border-radius: 5px; color: white; background: var(--ink); font-weight: 850; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.error { min-height: 21px; margin: -4px 0 0; color: #b42c14; font-size: 12px; }
.footnote { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.language-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:15px 0}.language-picker select{padding:7px;border:1px solid var(--line);border-radius:7px;background:white;color:inherit}

.auth-card{border-radius:14px;border-top:4px solid var(--accent)}.mark{background:var(--accent);border-radius:10px}button{background:var(--accent)}button:hover:not(:disabled){background:#0c6e4c}input{border-radius:8px}button{border-radius:8px}

.google-button{display:flex;align-items:center;justify-content:center;gap:10px;height:47px;margin-bottom:18px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font-weight:700;text-decoration:none}
.google-button:hover{background:#f5faf7;border-color:#b9d8c8}
.or{display:flex;align-items:center;gap:12px;margin:0 0 18px;color:var(--muted);font-size:12px}
.or:before,.or:after{content:'';flex:1;height:1px;background:var(--line)}
.link-button{height:auto;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:12px;font-weight:700;text-decoration:underline;cursor:pointer;width:auto}
#forgot-form{margin-top:4px}

/* Author styles such as form{display:grid} must not un-hide elements. */
[hidden]{display:none!important}
.password-field{display:grid;gap:8px}
.forgot-link{justify-self:end;font-size:12px}
html.booting .auth-shell{visibility:hidden}
html.booting body::after{content:"Commently";position:fixed;inset:0;display:grid;place-items:center;background:#edf2f5;color:#0c392f;font-size:30px;font-weight:800}
