.tfa-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 64px 16px;
    min-height: 100vh;
    background: #f3f4f6;
}

.tfa-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    text-align: center;
}

.tfa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f0fc;
    color: #1a73d9;
    margin-bottom: 16px;
}

.tfa-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px;
}

.tfa-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.tfa-form {
    text-align: left;
}

.tfa-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.tfa-required {
    color: #dc2626;
}

.tfa-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 18px;
    letter-spacing: 4px;
}

.tfa-input .k-input-inner {
    text-align: center;
}

.tfa-btn-primary {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border-radius: 6px;
    background: #1a73d9;
    border-color: #1a73d9;
    color: #fff;
    font-weight: 600;
}

.tfa-secondary-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.tfa-btn-link {
    background: none;
    border: 0;
    box-shadow: none;
    color: #1a73d9;
    font-size: 14px;
    padding: 4px 0;
}

.tfa-btn-link:disabled,
.tfa-btn-link.k-disabled {
    color: #9ca3af;
}

.tfa-btn-outline {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
}

.tfa-status {
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}

.tfa-status-sent {
    color: #15803d;
    font-weight: 600;
    margin-bottom: 4px;
}

.tfa-status-help {
    color: #1f2937;
}

.tfa-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    text-align: left;
}

/* ------------------------------------------------------------- dark mode */

body.dark-mode .tfa-page {
    background: #1a1a2e;
}

body.dark-mode .tfa-card {
    background: #16213e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body.dark-mode .tfa-icon {
    background: #1e2a4a;
    color: #5a8dee;
}

body.dark-mode .tfa-title {
    color: #ffffff;
}

body.dark-mode .tfa-subtitle,
body.dark-mode .tfa-label,
body.dark-mode .tfa-status {
    color: #a0a8b8;
}

body.dark-mode .tfa-page .tfa-input {
    background: #1e2a4a;
    border-color: #3a4a6e;
    color: #ffffff;
}

body.dark-mode .tfa-page .tfa-input .k-input-inner {
    color: #ffffff;
}

body.dark-mode .tfa-page .tfa-btn-outline {
    background: #1e2a4a;
    border-color: #3a4a6e;
    color: #e0e0e0;
}

body.dark-mode .tfa-page .tfa-btn-link {
    color: #5a8dee;
}

body.dark-mode .tfa-page .tfa-btn-link:disabled,
body.dark-mode .tfa-page .tfa-btn-link.k-disabled {
    color: #6b7385;
}

body.dark-mode .tfa-status-help {
    color: #e0e0e0;
}

body.dark-mode .tfa-alert {
    background: #3a1f24;
    color: #f8a3a3;
}
