/* TwoFaValidator.css */

.tfa-validator {
    width: 400px;
    max-width: 95vw;
    padding: 32px;
    box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────── */
.tfa-validator__header {
    text-align: center;
    margin-bottom: 20px;
}

.tfa-validator__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.1);
    margin-bottom: 16px;
}

.tfa-validator__icon .material-icons {
    font-size: 28px;
    color: #3f51b5;
}

.tfa-validator__icon--success {
    background: rgba(76, 175, 80, 0.1);
}

.tfa-validator__icon--success .material-icons {
    color: #4caf50;
}

.tfa-validator__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #212121;
}

.tfa-validator__subtitle {
    font-size: 13px;
    color: #757575;
    line-height: 1.5;
    margin: 0;
}

/* ── Countdown ───────────────────────────────────── */
.tfa-validator__countdown {
    text-align: center;
    margin-bottom: 16px;
    font-size: 12px;
}

.tfa-validator__countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #757575;
}

.tfa-validator__countdown-timer .material-icons {
    font-size: 14px;
}

.tfa-validator__countdown-timer--warning {
    color: #f57c00;
    font-weight: 600;
}

.tfa-validator__countdown-expired {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d32f2f;
    font-weight: 600;
}

.tfa-validator__countdown-expired .material-icons {
    font-size: 14px;
    color: #d32f2f;
}

/* ── Digit inputs ────────────────────────────────── */
.tfa-validator__inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tfa-validator__input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background: #fafafa;
    color: #212121;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    -moz-appearance: textfield;
}

.tfa-validator__input::-webkit-outer-spin-button,
.tfa-validator__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.tfa-validator__input:focus {
    border-color: #3f51b5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.12);
}

.tfa-validator__input--filled {
    border-color: #3f51b5;
    background: #fff;
}

.tfa-validator__input--error {
    border-color: #d32f2f !important;
    background: #fff8f8 !important;
}

.tfa-validator__input--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Success ─────────────────────────────────────── */
.tfa-validator__success-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4caf50;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 0;
}

.tfa-validator__success-msg .material-icons {
    color: #4caf50;
}

/* ── Error ───────────────────────────────────────── */
.tfa-validator__error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #d32f2f;
    font-size: 12px;
    margin-bottom: 8px;
    text-align: center;
}

.tfa-validator__error .material-icons {
    font-size: 16px;
    color: #d32f2f;
}

/* ── Loading ─────────────────────────────────────── */
.tfa-validator__loading {
    margin-bottom: 8px;
}

/* ── Actions ─────────────────────────────────────── */
.tfa-validator__actions {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.tfa-validator__btn-resend {
    color: #3f51b5 !important;
    font-size: 12px;
}

.tfa-validator__btn-resend .material-icons {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}