/**
 * VerifyPro Email OTP for WooCommerce - Professional Styles
 * Modern gradient design with purple theme
 *
 * @package VerifyPro_Email_OTP_WC
 */

/* Main Wrapper - VerifyPro Theme */
#veriemot-eotp-wrapper {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

#veriemot-eotp-wrapper:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

#veriemot-eotp-wrapper h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

#veriemot-eotp-wrapper h3::before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
}

.veriemot-eotp-description {
    margin: 0 0 20px 0;
    color: #5a6c7d;
    font-size: 14px;
}

/* OTP Input Field */
.veriemot-eotp-field {
    margin-bottom: 15px !important;
}

#verifypro_eotp_code_field input {
    font-size: 22px !important;
    letter-spacing: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border: 2px solid #667eea !important;
    border-radius: 8px !important;
    background: white !important;
    transition: all 0.3s ease !important;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#verifypro_eotp_code_field input:focus {
    border-color: #764ba2 !important;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2) !important;
    outline: none !important;
}

#verifypro_eotp_code_field input.verified {
    border-color: #27ae60 !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
}

#verifypro_eotp_code_field input:read-only {
    background: #f0f0f0 !important;
    cursor: not-allowed;
}

/* Verification Checkmark */
.veriemot-eotp-checkmark {
    display: inline-block;
    margin-left: 10px;
    color: #27ae60;
    font-size: 28px;
    font-weight: bold;
    animation: verifyProCheckmarkPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes verifyProCheckmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Buttons Container */
.veriemot-eotp-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Send OTP Button - VerifyPro Purple Gradient */
#veriemot-eotp-send-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

#veriemot-eotp-send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#veriemot-eotp-send-btn:hover::before {
    left: 100%;
}

#veriemot-eotp-send-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
}

#veriemot-eotp-send-btn:active {
    transform: translateY(0) !important;
}

#veriemot-eotp-send-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Verify OTP Button - Success Green Gradient */
#veriemot-eotp-verify-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#veriemot-eotp-verify-btn:hover {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.6) !important;
}

#veriemot-eotp-verify-btn:active {
    transform: translateY(0) !important;
}

#veriemot-eotp-verify-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Status Messages */
#veriemot-eotp-status {
    margin: 15px 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    text-align: center;
    animation: verifyProSlideDown 0.3s ease;
}

@keyframes verifyProSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#veriemot-eotp-status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    color: #155724;
}

#veriemot-eotp-status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    color: #721c24;
}

#veriemot-eotp-status.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Timer Display */
#veriemot-eotp-timer {
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    border-radius: 6px;
    border: 1px solid #667eea;
}

#veriemot-eotp-timer.expired {
    color: #e74c3c;
    background: linear-gradient(135deg, #fadbd8 0%, #f5b7b1 100%);
    border-color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    #veriemot-eotp-wrapper {
        padding: 20px 15px;
    }
    
    .veriemot-eotp-buttons {
        flex-direction: column;
    }
    
    #veriemot-eotp-send-btn,
    #veriemot-eotp-verify-btn {
        width: 100%;
        max-width: 100%;
    }
    
    #verifypro_eotp_code_field input {
        font-size: 18px !important;
        letter-spacing: 6px !important;
    }
}

@media (max-width: 480px) {
    #veriemot-eotp-wrapper h3 {
        font-size: 16px;
    }
    
    #verifypro_eotp_code_field input {
        font-size: 16px !important;
        letter-spacing: 4px !important;
        padding: 12px !important;
    }
    
    #veriemot-eotp-send-btn,
    #veriemot-eotp-verify-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* Loading Animation */
.veriemot-eotp-buttons button:disabled::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: verifyProSpin 0.6s linear infinite;
}

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

/* VerifyPro Branding Badge */
#veriemot-eotp-wrapper::after {
    content: "Secured by VerifyPro";
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #95a5a6;
    font-weight: 500;
}

/* Accessibility */
#veriemot-eotp-wrapper *:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #veriemot-eotp-wrapper {
        display: none;
    }
}

/* Professional Pulse Animation for Wrapper */
@keyframes verifyProPulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    }
}

#veriemot-eotp-wrapper.active {
    animation: verifyProPulse 2s ease-in-out infinite;
}
