/* ===== OTP VERIFICATION FORM - MODERN & CLEAN ===== */

/* Main Container */
#otp-verification-form {
    padding: 40px;
    text-align: center;
    max-width: 550px;
    margin: 70px auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0px 0px 45px 0px rgba(0, 0, 0, 0.09);
    position: relative;
}

/* Header Styles */

#otp-verification-form h2 {
    font-family: 'Plus Jakarta Sans';
    font-size: 38px;
    font-weight: 700;
    letter-spacing:1px!important;
}

#otp-verification-form > p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 35px !important;
    line-height: 1.5;
}

/* Timer Styles */
.otpTimer {
    display: inline-block;
    margin: 25px 0 35px 0;
    padding: 12px 20px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 25px;
    font-weight: 500;
    color: #2c3e50;
}

#timerDisplay {
    font-weight: 700;
    color: #2ECC71;
    margin-left: 8px;
    font-size: 1.1rem;
}

/* OTP Input Fields - Modern Underlined Style */
.otp-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: nowrap;
}

.otpField {
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid #dfdfdf!important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    outline: none;
}

.otpField:focus {
    border-bottom-color: #2ECC71 !important;
    background: rgba(46, 204, 113, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.15);
}

/* Button Container */
.buttonRow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0 30px 0;
    flex-wrap: nowrap;
}
.button-text{
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition-duration: 0.3s;
}

/* Message Styles */
.success-message {
    margin: 20px 0 !important;
    padding: 12px 20px;
    color: #2ECC71 !important;
}

.error-message {
    margin: 20px 0 !important;
    padding: 12px 20px;
    border-radius: 8px !important;
    color: red !important;
}

.otpExpiredMessage p {
    margin: 20px 0 !important;
    padding: 12px 20px;
    color: red !important;
}

/* Button States */
.submitButton:disabled,
.resendOTP:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submitButton:disabled:hover,
.resendOTP:disabled:hover {
    transform: none;
    opacity: 0.6;
    box-shadow: none;
}

/* Loading State */
.submitButton.loading {
    position: relative;
    color: transparent !important;
}

.submitButton.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 767.98px) {
    #otp-verification-form {
        max-width: 90%;
        padding: 35px 25px;
        margin: 30px auto;
    }
    
    .otp-inputs {
        gap: 12px;
    }
    
    .otpField {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem;
    }
    
    .buttonRow {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .submitButton,
    .resendOTP {
        min-width: 130px;
        padding: 12px 24px !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    #otp-verification-form {
        padding: 30px 20px;
    }
    
    #otp-verification-form h2 {
        font-size: 1.75rem;
    }
    
    .otp-inputs {
        gap: 10px;
    }
    
    .otpField {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem;
    }
    
    .buttonRow {
        flex-direction: column;
        gap: 12px;
    }
    
    .submitButton,
    .resendOTP {
        width: 100%;
        min-width: unset;
        padding: 12px 20px !important;
    }
}


/* ===== MODERN ENHANCEMENTS ===== */

/* Subtle animations on form load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#otp-verification-form {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced input focus animations */
.otpField {
    position: relative;
}

.otpField::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #2ECC71;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.otpField:focus::before {
    width: 100%;
}

/* otp-handler.css - Additional Styles */

/* Timer container */
.timer-container {
    background-color: #f1fbec;
    color: #54b783;
    border-color: #cce8b3;
    border-radius: 4px;
}

/* Alert styling */
.alert {
    position: relative;
    padding: 12px 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    color: #0F5132;
    background-color: #D1E7DD;
    border-color: #BADBCC;
}

.alert-danger {
    color: #842029;
    background-color: #F8D7DA;
    border-color: #F5C2C7;
}

.alert .close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: inherit;
    text-decoration: none;
    opacity: 0.5;
}

.alert .close:hover {
    opacity: 1;
}

/* Button states */
.submitButton:disabled,
.resendOTP:disabled,
.submitButton.disabled,
.resendOTP.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}


.submitButton:not(:disabled):hover,
.resendOTP:not(:disabled):hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* OTP inputs */
.otpValue:disabled {
    background-color: #F5F5F5;
    cursor: not-allowed;
}