/* Exact UI Match - Mobile OTP Login Styles */
/* Place in: /wp-content/themes/your-theme/css/login.css */

/* 1. Main Container Card */
#custom_secure_checkout_login {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background: #ffffff !important;
    max-width: 420px !important;
    margin: 50px auto !important;
    padding: 40px 30px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    /* Soft, floating box shadow as seen in image */
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f3f4f6 !important;
}

.login-wrapper {
    width: 100% !important;
    display: block !important;
}

/* 2. Headings */
#custom_secure_checkout_login .login-heading {
    text-align: center !important;
    margin-bottom: 30px !important;
}

#custom_secure_checkout_login .login-heading h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
    border: none !important;
    padding: 0 !important;
}

#custom_secure_checkout_login .login-subheading {
    font-size: 15px !important;
    color: #4b5563 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

#custom_secure_checkout_login #display_recipient_otp {
    color: #000 !important;
    font-weight: 600 !important;
}

/* Test mode hint */
#custom_secure_checkout_login .test-mode-hint {
    color: #279f53 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    font-weight: 600 !important;
    background-color: #e8f5e9 !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    display: inline-block !important;
    border: 1px solid #279f53 !important;
}

/* 3. Form Rows */
#custom_secure_checkout_login .custom-form-row {
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    display: block !important;
}

/* 4. Mobile Input Field (Pill Shape + Glow) */
#custom_secure_checkout_login .country-code-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50px !important; 
    padding: 0 20px !important;
    background: #fff !important;
    height: 56px !important;
    /* Soft Blue Box Shadow inside */
    box-shadow: 0px 6px 20px rgba(186, 209, 245, 0.4) !important;
    transition: all 0.3s ease !important;
}

/* Email wrapper - same style but without country code */
#custom_secure_checkout_login .country-code-wrapper.email-wrapper {
    padding: 0 25px !important;
}

#custom_secure_checkout_login .country-code-wrapper:focus-within {
    border-color: #a0c3ff !important;
}

#custom_secure_checkout_login .country-code-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: auto !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    color: #111 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    padding: 0 5px 0 0 !important;
}

#custom_secure_checkout_login .input-divider {
    width: 1px !important;
    height: 24px !important;
    background-color: #e2e8f0 !important;
    margin: 0 15px !important;
    display: block !important;
}

#custom_secure_checkout_login .mobile-input,
#custom_secure_checkout_login .email-input {
    flex: 1 !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    color: #111 !important;
    outline: none !important;
    padding: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
}

/* 5. The 6-Digit OTP Squares */
#custom_secure_checkout_login .otp-input-group {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
}

#custom_secure_checkout_login .otp-digit {
    width: 46px !important;
    height: 54px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important; /* Squarish with rounded corners */
    background: #fff !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: #111 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Active Glow for OTP Box */
#custom_secure_checkout_login .otp-digit:focus {
    border-color: #279f53 !important; /* Green */
    box-shadow: 0 0 12px rgba(39, 159, 83, 0.3) !important;
    outline: none !important;
}

/* Success Border for OTP Box */
#custom_secure_checkout_login .otp-digit.success-border {
    border-color: #279f53 !important;
    background-color: #f0fff4 !important;
    color: #279f53 !important;
}

/* 6. Buttons */
#custom_secure_checkout_login .custom-submit-button {
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #0b9070 !important; /* Standard Green */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important; /* Pill shape */
    padding: 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: none !important;
    text-align: center !important;
    display: block !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

#custom_secure_checkout_login .custom-submit-button:hover {
    background-color: #218c48 !important;
}

/* "Sending..." state */
#custom_secure_checkout_login .custom-submit-button.sending-state {
    background-color: #88cfa4 !important; /* Lighter Green */
    cursor: not-allowed !important;
}

/* 7. Info Text & Links */
#custom_secure_checkout_login .form-info-text {
    color: #111 !important;
    font-size: 13px !important;
    margin: 10px 0 35px 0 !important;
    text-align: center !important;
}

#custom_secure_checkout_login .alternative-link {
    text-align: center !important;
    margin-top: 20px !important;
    font-size: 15px !important;
}

#custom_secure_checkout_login .alternative-link .text-muted {
    color: #6b7280 !important;
    display: block !important;
    font-size: 15px !important;
    line-height:0.9 !important;
}

#custom_secure_checkout_login .alternative-link a {
    color: #1a428a !important; 
    text-decoration: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-block !important;
    font-size:14px !important;
}

#custom_secure_checkout_login .alternative-link a:hover {
    text-decoration: underline !important;
}

/* Back link styling */
#custom_secure_checkout_login #back-to-login {
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: inline-block !important;
    margin-top: 15px !important;
}

#custom_secure_checkout_login #back-to-login:hover {
    color: #279f53 !important;
    text-decoration: underline !important;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #custom_secure_checkout_login {
        padding: 25px 10px !important;
        margin: 20px 15px !important;
    }
    
    #custom_secure_checkout_login .otp-digit {
        width: 40px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    /* Mobile-specific font size adjustments */
    #custom_secure_checkout_login .login-subheading {
        font-size: 13px !important;
    }
    
    #custom_secure_checkout_login .form-info-text {
        font-size: 12px !important;
        margin: 10px 0 20px 0 !important;
    }
    
    #custom_secure_checkout_login .alternative-link {
        font-size: 14px !important;
    }
    
    #custom_secure_checkout_login .alternative-link .text-muted {
        display: block !important;
        margin-bottom: 5px !important;
        line-height: 1.4em;
    }
}