/* Contenedor principal */
.otp-verification-container {
    background-color: #f8f9fa;
    min-height: calc(100vh - 120px);
    padding: 40px 0 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
}

/* Tarjeta principal */
.otp-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    max-width: 550px;
    margin: 0 auto;
}

/* Header */
.otp-header {
    background-color: #343a40;
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.otp-logo {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.otp-logo i {
    font-size: 1.5rem;
    color: white;
}

.otp-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.otp-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 400;
}

/* Body */
.otp-body {
    padding: 30px;
}

/* Pasos de verificación */
.verification-step {
    display: none;
}

.verification-step.active {
    display: block;
}

/* Header de pasos */
.step-header {
    text-align: center;
    margin-bottom: 25px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px;
}

.step-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.email-highlight {
    color: #007bff;
    font-weight: 600;
}

/* Formularios */
.otp-form {
    max-width: 100%;
    margin: 0 auto;
}

.otp-form-group {
    margin-bottom: 20px;
}

.otp-form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
}

/* Inputs */
.input-wrapper,
.otp-input-container {
    position: relative;
}

.otp-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.otp-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.otp-code-input {
    text-align: center;
    font-size: 20px !important;
    font-weight: 500;
    letter-spacing: 0.25rem;
    font-family: 'Courier New', monospace;
}

.otp-code-input::placeholder {
    font-size: 20px !important;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.otp-input:focus + .input-icon {
    color: #007bff;
}

/* Mensajes de validación */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Botones */
.otp-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    margin-bottom: 10px;
}

.btn-primary.otp-btn {
    background-color: #007bff;
    color: white;
}

.btn-primary.otp-btn:hover {
    background-color: #0056b3;
}

.btn-success.otp-btn {
    background-color: #28a745;
    color: white;
}

.btn-success.otp-btn:hover {
    background-color: #1e7e34;
}

.btn-gray.otp-btn {
    background-color: #3A526A;
    color: white;
}

.btn-gray.otp-btn:hover {
    background-color: #2A3B4A;
}



.otp-btn-secondary {
    background: none;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 10px 20px;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0 5px;
    flex: 1;
}

.otp-btn-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-content,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
}

/* Acciones secundarias */
.otp-actions {
    margin-top: 25px;
}

.secondary-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Verificación exitosa */
.success-icon {
    width: 60px;
    height: 60px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

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

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.redirect-text {
    color: #6c757d;
    font-weight: 400;
    margin: 0;
}

/* Footer */
.otp-footer {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.security-info {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-info {
    font-size: 0.8rem;
    color: #6c757d;
}

.support-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 400;
}

.support-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .otp-verification-container {
        padding: 10px;
    }

    .otp-card {
        margin: 10px;
        border-radius: 6px;
    }

    .otp-header {
        padding: 25px 20px;
    }

    .otp-body {
        padding: 25px 20px;
    }

    .otp-footer {
        padding: 15px 20px;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 8px;
    }

    .otp-btn-secondary {
        margin: 0;
        width: 100%;
    }

    .otp-title {
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 1.1rem;
    }
}

/* Estados de botones */
.otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Countdown timer */
#countdown-timer {
    font-weight: 600;
    color: #dc3545;
}