/* Sign-in, sign-up and reset: one card on the page ground, nothing else. */
body.auth { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; overflow: auto; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 2.6vw, 40px); }
.auth-top .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.auth-top .mark { width: 24px; height: 24px; } .auth-top .wordmark { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.auth-top .alt { font-size: 13px; color: var(--dg-text-muted); } .auth-top .alt a { color: var(--dg-text); font-weight: 500; text-decoration: none; margin-left: 6px; }
.auth-main { display: grid; place-items: center; padding: 24px 16px 48px; }
.auth-card { width: min(440px, 100%); background: var(--dg-surface); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-xl); box-shadow: var(--dg-shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { margin: 0; font-size: 24px; font-weight: var(--dg-heading-weight); letter-spacing: var(--dg-heading-track); line-height: 1.15; }
.auth-card .lede { margin: -8px 0 0; color: var(--dg-text-muted); font-size: 14px; line-height: 1.5; }
.field2 { display: flex; flex-direction: column; gap: 6px; }
.field2 label { font-size: 12.5px; color: var(--dg-text-soft); font-weight: 500; display: flex; justify-content: space-between; }
.field2 label a { color: var(--dg-text-muted); text-decoration: none; font-weight: 400; } .field2 label a:hover { color: var(--dg-text); }
.field2 .wrap { position: relative; }
.field2 input { width: 100%; height: 42px; padding: 0 12px; background: var(--dg-bg); border: 1px solid var(--dg-line-strong); border-radius: var(--dg-radius); font-size: 15px; }
.field2 input:focus { border-color: var(--dg-accent); box-shadow: 0 0 0 3px var(--dg-accent-wash); outline: none; }
.field2 input[aria-invalid=true] { border-color: var(--dg-danger); }
.field2 .err { font-size: 12px; color: var(--dg-danger); min-height: 0; }
.field2 .help { font-size: 12px; color: var(--dg-text-faint); }
.field2 .peek { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: var(--dg-radius-pill); background: none; color: var(--dg-text-muted); display: grid; place-items: center; }
.field2 .peek:hover { background: var(--dg-surface-3); color: var(--dg-text); }
.strength { display: flex; gap: 4px; margin-top: 2px; } .strength i { flex: 1; height: 3px; border-radius: 2px; background: var(--dg-line); } .strength i.on { background: var(--dg-ok); } .strength i.weak { background: var(--dg-warn); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--dg-text-soft); line-height: 1.5; }
.agree input { accent-color: var(--dg-accent); margin: 3px 0 0; flex: none; width: 15px; height: 15px; }
.agree a { color: var(--dg-text); }
.auth-card .btn.primary { height: 44px; justify-content: center; font-size: 15px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--dg-text-muted); } .auth-foot a { color: var(--dg-text); font-weight: 500; text-decoration: none; }
.auth-bottom { padding: 18px; text-align: center; font-size: 12px; color: var(--dg-text-faint); } .auth-bottom a { color: var(--dg-text-muted); text-decoration: none; margin: 0 8px; }
.auth-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--dg-radius); border: 1px solid var(--dg-warn-line); background: var(--dg-warn-wash); font-size: 12.5px; color: var(--dg-text-soft); line-height: 1.5; }
.auth-note .ico { color: var(--dg-warn); flex: none; margin-top: 1px; }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.done .ico { width: 36px; height: 36px; color: var(--dg-ok); }
.done p { margin: 0; color: var(--dg-text-muted); font-size: 14px; line-height: 1.5; }
.plans-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plans-mini div { border: 1px solid var(--dg-line); border-radius: var(--dg-radius); padding: 10px 12px; font-size: 12.5px; color: var(--dg-text-muted); }
.plans-mini b { display: block; color: var(--dg-text); font-size: 13px; margin-bottom: 2px; }
