/* Email Verification Styles */

/* Verify Email Button */
.verify-email-btn {
    background: linear-gradient(135deg, #28314E 0%, #1a2235 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .verify-email-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #1a2235 0%, #28314E 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(40, 49, 78, 0.3);
    }

    .verify-email-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .verify-email-btn.verified {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }

    .verify-email-btn .btn-loader {
        display: none;
    }

    .verify-email-btn.loading .btn-text {
        display: none;
    }

    .verify-email-btn.loading .btn-loader {
        display: inline-block;
    }

/* Email Input Group */
.email-verification-group {
    position: relative;
}

.email-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .email-input-wrapper .form-control {
        flex: 1;
    }

.verification-status {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    margin-top: 5px;
}

    .verification-status.verified {
        display: flex;
        color: #28a745;
    }

    .verification-status.not-verified {
        display: flex;
        color: #dc3545;
    }

/* OTP Modal Styles */
.otp-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.otp-modal-header {
    background: linear-gradient(135deg, #28314E 0%, #1a2235 100%);
    color: white;
    border-bottom: none;
    padding: 20px 24px;
}

    .otp-modal-header .modal-title {
        font-weight: 600;
        font-size: 18px;
        color: white;
    }

.otp-modal-body {
    padding: 30px 24px;
    background-color: #f8f9fa;
}

.otp-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28314E 0%, #1a2235 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .otp-icon-wrapper i {
        font-size: 36px;
        color: white;
    }

.otp-instruction {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.otp-email-display {
    color: #28314E;
    font-weight: 600;
    font-size: 16px;
}

/* OTP Input Fields */
.otp-input-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.otp-inputs {
    display: flex;
    gap: 10px;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: white;
    transition: all 0.2s ease;
    color: #28314E;
}

    .otp-input:focus {
        outline: none;
        border-color: #28314E;
        box-shadow: 0 0 0 3px rgba(40, 49, 78, 0.1);
    }

    .otp-input.filled {
        border-color: #28314E;
        background-color: #f0f4ff;
    }

    .otp-input.error {
        border-color: #dc3545;
        animation: shake 0.5s ease-in-out;
    }

    .otp-input.success {
        border-color: #28a745;
        background-color: #e8f5e9;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

/* Error and Success Messages */
.otp-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.otp-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* Resend Link */
.otp-resend-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.otp-resend-link {
    color: #28314E;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .otp-resend-link:hover {
        color: #1a2235;
        text-decoration: underline;
    }

    .otp-resend-link.disabled {
        color: #999;
        pointer-events: none;
    }

/* Modal Footer */
.otp-modal-footer {
    border-top: 1px solid #eee;
    padding: 16px 24px;
    background-color: white;
}

.otp-verify-btn {
    background: linear-gradient(135deg, #28314E 0%, #1a2235 100%);
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    min-width: 120px;
}

    .otp-verify-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #1a2235 0%, #28314E 100%);
    }

    .otp-verify-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Submit Button States */
.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Submit Button Loading State */
button[type="submit"].btn-loading,
input[type="submit"].btn-loading {
    position: relative;
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-spinner {
    display: inline-block;
    margin-right: 8px;
}

.btn-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ensure spinner is visible in loading state */
.btn-loading .btn-spinner {
    display: inline-block;
}

.email-not-verified-warning {
    display: none;
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    align-items: center;
    gap: 8px;
}

    .email-not-verified-warning.show {
        display: flex;
    }

/* Responsive */
@media (max-width: 576px) {
    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .email-input-wrapper {
        flex-direction: column;
    }

    .verify-email-btn {
        width: 100%;
        justify-content: center;
    }
}
