/* ============ AUTH ============ */
.auth-form { display: flex; flex-direction: column; gap: 9px; text-align: left; margin-top: 4px; }
.auth-form h3 { font-size: 13px; font-weight: 650; color: var(--ink-2); text-align: center; margin-bottom: 4px; }
.auth-card .auth-form input { text-align: left; letter-spacing: normal; font-size: 13.5px; }
.auth-card .auth-form input[type="password"] { letter-spacing: 0.06em; }
.auth-card .auth-form button { margin-top: 4px; }
.auth-card .auth-form button:disabled { opacity: 0.6; cursor: default; }
.auth-err { min-height: 15px; font-size: 12px; line-height: 1.35; color: var(--critical); }

/* ============ LICENCE AGREEMENT ============ */
#termsGate { z-index: 220; }
#termsGate .hidden { display: none; }
.terms-card { width: 620px; max-width: 94vw; text-align: center; }
.terms-doc {
	margin-top: 4px; text-align: left; height: 320px; max-height: 46vh; overflow-y: auto;
	background: var(--bg); border: 1px solid var(--hairline); border-radius: 12px;
	padding: 16px 18px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2);
	white-space: pre-wrap; overflow-wrap: anywhere;
}
.terms-doc.md { white-space: normal; }
.terms-doc:focus { outline: none; border-color: var(--blue); }
.terms-doc h4 { color: var(--ink); font-size: 13px; font-weight: 650; margin: 14px 0 4px; }
.terms-doc li { margin-left: 16px; }
.terms-doc b { color: var(--ink); }
.terms-note { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; min-height: 15px; text-align: left; }
.terms-note.done { color: var(--good); }
.terms-check { display: flex; align-items: center; gap: 9px; margin-top: 12px; text-align: left; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.terms-check input { width: 15px; height: 15px; flex: none; accent-color: var(--blue); cursor: pointer; }
.terms-card .auth-err { text-align: left; }
.terms-actions { display: flex; gap: 8px; margin-top: 4px; }
.terms-actions button { margin-top: 0; }
.terms-actions .terms-decline { width: 140px; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.terms-actions #termsAcceptBtn { flex: 1; }
.terms-actions #termsAcceptBtn:disabled { opacity: 0.45; cursor: not-allowed; }
.terms-stop { width: 400px; }
.terms-stop .btn { width: 100%; padding: 10px; margin-top: 4px; }

.auth-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); text-align: left; margin: 2px 0 2px; line-height: 1.45; }
.auth-consent input { width: auto; margin: 2px 0 0; flex: none; }
.auth-consent a { color: var(--blue); }
.auth-switch { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.auth-switch a { color: var(--blue); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
