/* ── totp_verify ── */
.totp-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.totp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); width: 100%; max-width: 400px; text-align: center; }
.totp-icon { width: 56px; height: 56px; background: var(--accent-light, #fdf3e0); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--accent); }
.totp-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.375rem; }
.totp-sub { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 2rem; line-height: 1.5; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; text-align: left; }
.totp-input { width: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 2rem; letter-spacing: 0.35em; text-align: center; font-family: var(--font-data, monospace); background: var(--surface); color: var(--text-primary); box-sizing: border-box; transition: border-color 0.15s; }
.totp-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,160,32,0.12); }
.form-error { color: #c0392b; font-size: 0.8125rem; margin-top: 0.5rem; text-align: left; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem 1.5rem; background: var(--text-primary); color: #fff; border: none; border-radius: var(--radius-md); font-size: 0.9375rem; font-weight: 600; cursor: pointer; font-family: var(--font-ui, sans-serif); margin-top: 1rem; transition: background 0.15s; }
.btn-primary:hover { background: #1a2637; }

/* ── totp_setup ── */
.totp-card { max-width: 460px; }
.steps-list { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.8; margin: 0 0 1.5rem; padding-left: 1.25rem; }
.qr-wrap { display: flex; justify-content: center; align-items: center; margin: 1.5rem 0; background: #fff; border: 1px solid var(--border-light, #eef0f3); border-radius: var(--radius-md); padding: 1.5rem; min-height: 220px; }
.qr-loading { font-size: 0.875rem; color: var(--text-muted); }
.secret-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.375rem; }
.secret-box { background: var(--surface-2, #f8f9fb); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; font-family: var(--font-data, monospace); font-size: 0.8125rem; word-break: break-all; color: var(--text-secondary); margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.divider { border: none; border-top: 1px solid var(--border-light, #eef0f3); margin: 1.5rem 0; }
.totp-input { font-size: 1.5rem; letter-spacing: 0.3em; padding: 0.75rem 1rem; }
.form-error { margin-top: 0.375rem; }
.btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.5rem; background: none; border: none; color: var(--text-muted); font-size: 0.875rem; cursor: pointer; margin-top: 0.75rem; text-decoration: underline; font-family: var(--font-ui, sans-serif); }

/* ── totp_manage ── */
.status-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 4px 12px; background: #e8f5e9; color: #2f9e44; border-radius: 20px; font-size: 0.8125rem; font-weight: 600; margin-bottom: 1.5rem; }
.warning-box { background: #fff3e0; border: 1px solid #ffe0b2; border-radius: var(--radius-sm); padding: 0.875rem 1rem; font-size: 0.875rem; color: #e65100; margin-bottom: 1.5rem; line-height: 1.5; }
.btn-danger { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.6875rem 1.5rem; background: #c0392b; color: #fff; border: none; border-radius: var(--radius-md); font-size: 0.9375rem; font-weight: 600; cursor: pointer; font-family: var(--font-ui, sans-serif); margin-top: 1rem; }
a.btn-ghost { display: block; text-align: center; margin-top: 0.75rem; color: var(--text-muted); font-size: 0.875rem; text-decoration: none; }

/* ── setup_password / setup_questions ── */
.setup-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.setup-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); width: 100%; max-width: 560px; }
.setup-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.setup-step { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.setup-step.done { background: #2f9e44; }
.setup-step.active { background: var(--accent); }
.setup-logo { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 2rem; }
.setup-logo-icon { width: 36px; height: 36px; background: var(--text-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.setup-logo-text { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.setup-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.25rem; }
.setup-sub { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1.75rem; line-height: 1.5; }
.question-block { background: var(--surface-2, #f8f9fb); border: 1px solid var(--border-light, #eef0f3); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.question-num { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.form-select, .form-input { width: 100%; padding: 0.75rem 0.875rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9375rem; font-family: var(--font-ui, sans-serif); background: var(--surface); color: var(--text-primary); box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s; }
.form-select:focus, .form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,160,32,0.12); }
.form-input::placeholder { color: var(--text-muted); }
.form-group { margin-bottom: 0.75rem; }
.form-hint { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.375rem; line-height: 1.5; }
.tip-box { background: var(--accent-light, #fdf3e0); border: 1px solid rgba(232,160,32,0.25); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--accent-dark, #c4831a); margin-bottom: 1.5rem; }

/* ── no_organisation ── */
.error-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.error-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem 2.5rem; box-shadow: var(--shadow-md); width: 100%; max-width: 480px; text-align: center; }
.error-icon { width: 64px; height: 64px; background: #fff3e0; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.error-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.625rem; }
.error-body { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 2rem; }

.form-error--block { margin-bottom: 0.75rem; }

.error-icon-symbol { font-size: 30px; color: #e8700a; }
.btn-primary .material-symbols-outlined { font-size: 18px; }

.qr-img-pixelated { image-rendering: pixelated; }
.qr-error-text { color: #c0392b; font-size: 0.875rem; }
.totp-form-group { margin-bottom: 0.75rem; }

.totp-icon-symbol { font-size: 26px; }
.totp-form-group--small { margin-bottom: 0.5rem; }
.totp-remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    justify-content: center;
}
.totp-remember-row input { width: 16px; height: 16px; }

.status-badge .material-symbols-outlined { font-size: 15px; }
