/* ===================================================
   mfa-verification.css
   Unified MFA/OTP/TOTP visual styles
   =================================================== */

/* === Code input boxes === */
.mfa-code-input {
    width: 46px !important;
    height: 52px !important;
    font-size: 1.375rem !important;
    font-weight: 600;
    text-align: center;
    border: 1.5px solid #ced4da !important;
    border-radius: 8px !important;
    padding: 0 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
}

.mfa-code-input:focus {
    border-color: #004DB8 !important;
    box-shadow: 0 0 0 3px rgba(0, 77, 184, 0.12) !important;
    outline: none;
}

/* === Submit button === */
.mfa-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 46px;
    border-radius: 8px;
    background-color: #004DB8;
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.mfa-submit-btn:hover:not(:disabled) {
    background-color: #003d94;
}

.mfa-submit-btn:disabled {
    background-color: #004DB8;
    opacity: 0.45;
    cursor: not-allowed;
}

/* While loading, keep a solid colour (slightly darker busy shade) instead of
   the faded disabled look. Signals "working" rather than "disabled/broken". */
.mfa-submit-btn.btn-is-loading,
.mfa-submit-btn.btn-is-loading:disabled {
    background-color: #003d94;
    opacity: 1;
    cursor: default;
}

/* === Title === */
.mfa-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #212529;
    margin: 0;
}

/* === Description text === */
.mfa-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

/* === Status indicators === */
.mfa-status {
    font-size: 0.8125rem;
    text-align: center;
}

.mfa-status--info {
    color: #004DB8;
}

.mfa-status--danger {
    color: #dc3545;
    font-weight: 600;
}

/* === Refresh hint === */
.mfa-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 18px;
    white-space: nowrap;
}

.mfa-hint i {
    color: #004DB8;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* === Support text === */
.mfa-support-text {
    font-size: 0.8125rem;
    color: #6c757d;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.mfa-support-text--otp {
    margin-top: 20px;
}

/* === Resend link area === */
.mfa-resend {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 12px;
    text-align: center;
}

.mfa-resend a {
    color: #004DB8;
    text-decoration: none;
    font-weight: 500;
}

.mfa-resend a:hover {
    text-decoration: underline;
}

/* === Shield icon === */
.mfa-shield-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8f0fe, #dbeafe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mfa-shield-icon i,
.mfa-shield-icon svg {
    font-size: 1.25rem;
    color: #004DB8;
}

/* === Modal overrides for unified look === */
.mfa-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.mfa-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 24px;
}

.mfa-modal .modal-body {
    padding: 28px 24px 16px;
}

.mfa-modal .modal-footer {
    border-top: none;
    padding: 0 24px 28px;
}

/* === Back link === */
.mfa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #6c757d;
    text-decoration: none;
    margin-top: 16px;
}

.mfa-back-link:hover {
    color: #004DB8;
}

/* === Responsive === */
@media (max-width: 420px) {
    .mfa-code-input {
        width: 40px !important;
        height: 44px !important;
        font-size: 1.125rem !important;
    }
}

@media (max-width: 360px) {
    .mfa-code-input {
        width: 34px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
}
