/* Two-factor sign-in (customer portal): sign-in step, setup, security page, recovery codes. */
.tf-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.tf-form { display: grid; gap: 16px; }
.tf-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.tf-code { font: 700 26px ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .3em; text-align: center; }
.tf-code.tf-text { letter-spacing: .1em; font-size: 20px !important; }
.tf-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14.5px !important; cursor: pointer; }
.tf-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.tf-hint { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.tf-links { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.tf-links a, .tf-links button { color: var(--brand); font-weight: 600; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-weight: 600; }
.tf-links .tf-hint { margin: 0; }
.tf-cancel { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.tf-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.tf-choice a { text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.3; }
.tf-choice a.active { border-color: var(--brand); background: #f3f9ec; color: var(--brand); }
.tf-steps { margin: 0 0 16px; padding-left: 20px; line-height: 1.6; color: var(--text); font-size: 15px; }
.tf-steps li { margin-bottom: 6px; }
.tf-qr { width: 210px; max-width: 100%; aspect-ratio: 1; margin: 4px auto 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.tf-qr svg { width: 100%; height: 100%; display: block; }
.tf-secret { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; text-align: center; user-select: all; }
.tf-card { max-width: 640px; }
.tf-card:hover { transform: none; box-shadow: none; }
.tf-method { display: flex; gap: 14px 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); }
.tf-method:first-of-type { border-top: 0; padding-top: 4px; }
.tf-method > div:first-child { flex: 1 1 260px; min-width: 0; }
.tf-method h3 { font-size: 17px; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tf-method p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.tf-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tf-inline .input { width: 200px; max-width: 100%; padding-top: 9px; padding-bottom: 9px; }
.tf-off { background: var(--bg-2); color: var(--muted); }
.tf-devices { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.tf-devices li { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font: 600 17px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px; margin: 14px 0 18px; }
.tf-codes span { white-space: nowrap; }
@media (max-width: 480px) {
    .tf-codes { grid-template-columns: 1fr; }
    .tf-inline .input { width: 100%; }
    .tf-inline > .btn { flex: 1 1 auto; }
}
@media print {
    body * { visibility: hidden; }
    .tf-print, .tf-print * { visibility: visible; }
    .tf-print { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
    .tf-noprint { display: none !important; }
}
