/* Mudra Vault: log-in and home pages (uses the variables in styles.css) */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at 50% -20%, var(--panel-2) 0%, var(--bg) 100%); }
.auth-card { width: 100%; max-width: 420px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px 30px 28px; animation: fadeUp .4s var(--ease); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.auth-lockup { height: 72px; width: auto; display: block; }
.auth-lockup.lk-l { display: none; }
[data-theme="light"] .auth-lockup.lk-d { display: none; }
[data-theme="light"] .auth-lockup.lk-l { display: block; }
.auth-title { text-align: center; font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 6px 0 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
.auth-view { display: none; }
.auth-view.on { display: block; }
.auth-card .btn.primary { width: 100%; margin-top: 6px; padding: 12px; font-size: 14.5px; justify-content: center; }
.auth-card .btn.wide { width: 100%; justify-content: center; padding: 11px; margin-top: 10px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gwrap { position: relative; display: flex; justify-content: center; min-height: 44px; }
.gblock { position: absolute; inset: 0; cursor: pointer; }
.gwrap.off #gbtn { opacity: .45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; margin: 16px 0 4px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.check a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.check.nudge { animation: shake .35s var(--ease); color: var(--text); }
.auth-err { color: var(--loss); font-size: 13px; min-height: 18px; margin: 10px 0 0; line-height: 1.4; }
.auth-ok { color: var(--gain); font-size: 13px; margin: 10px 0 0; line-height: 1.4; }
.auth-slow { color: var(--muted); font-size: 12.5px; text-align: center; margin: 10px 0 0; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; }
.auth-links a, .auth-link { color: var(--gold-2); cursor: pointer; }
.auth-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); text-align: center; line-height: 1.6; }
.auth-foot a { color: var(--gold-2); font-weight: 500; }
.code-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: 10px; text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap .input { width: 100%; padding-right: 64px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.pw-eye:hover { color: var(--text); background: var(--panel-2); }
.field .input { width: 100%; }
@keyframes shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* legal document modal */
.doc-modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; }
.doc-body { font-size: 14px; line-height: 1.65; color: var(--muted); }
.doc-body h2, .doc-body h3, .doc-body h4 { color: var(--text); font-weight: 500; margin: 18px 0 6px; }
.doc-body ul { padding-left: 20px; }
.doc-body a { color: var(--gold-2); }

/* signed-in home */
.home { max-width: 760px; margin: 0 auto; padding: 22px 20px 60px; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.home-top img { height: 44px; width: auto; }
.home-who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.home h1 { font-family: var(--serif); font-weight: 500; font-size: 38px; margin: 0 0 6px; }
.home .lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.home .card { margin-bottom: 16px; }
.home .card p { color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.home .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.empty-ring { width: 64px; height: 64px; border-radius: 50%; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; color: var(--gold-2); font-size: 26px; margin-bottom: 12px; }
.consent-docs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.consent-docs a { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.consent-docs a span { color: var(--faint); font-size: 12.5px; }
.ticket-line { font-size: 12px; color: var(--faint); margin-top: 12px; }
