/* verify.css - Página de verificación */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Questrial', sans-serif;
    background: linear-gradient(135deg, #004059 0%, #001b26 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.verification-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
}

.brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand .logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
}

.brand h1 {
    font-size: 1.25rem;
    color: #004059;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.25rem;
    color: #004059;
    margin: 0 0 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.step {
    /* display controlled via inline styles now */
}

.step.active {
    animation: stepIn 0.4s ease forwards;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #004059;
    box-shadow: 0 0 0 3px rgba(0, 64, 89, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.text-center {
    text-align: center;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

/* CAPTCHA */
#captcha-challenge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.math-challenge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.captcha-num {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    color: #004059;
}

.captcha-input {
    width: 80px !important;
    text-align: center;
}

.btn-refresh {
    background: none;
    border: none;
    color: #004059;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #004059;
    color: #ffffff;
}

.btn-primary:hover {
    background: #006d8f;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: #004059;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* OTP Card */
/* removed redundant display rules - .step handles visibility */

.otp-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    text-align: center;
}

.otp-icon {
    font-size: 3rem;
    color: #004059;
    margin-bottom: 1rem;
}

.otp-card h2 {
    font-size: 1.25rem;
    color: #004059;
    margin: 0 0 0.25rem;
    text-align: center;
}

.otp-card .subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.otp-card .alert {
    text-align: left;
}

.otp-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    padding: 0.75rem;
}

/* OTP Footer */
.otp-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.otp-footer .btn-link {
    margin-top: 0.5rem;
    display: inline-block;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
}

.otp-footer .btn-link:hover {
    color: #004059;
    text-decoration: underline;
}

.timer-box {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.timer-box i {
    font-size: 1rem;
    color: #004059;
}

#countdown {
    font-weight: 600;
    color: #004059;
    font-variant-numeric: tabular-nums;
}

.mt-3 {
    margin-top: 1rem;
}

/* Success */
.success-container {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
}

.success-container h2 {
    color: #198754;
    margin-bottom: 0.5rem;
}

/* Loading */
.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .verification-container {
        padding: 1.5rem;
    }
}
