/*
 * Basic styling for the OTP login component.  These styles mimic the look and feel
 * of the WoodMart theme login form: soft backgrounds, rounded corners and a
 * green accent button.  Feel free to tweak these values to perfectly match
 * your site's colour palette.
 */

.wc-email-otp-login {
    margin-top: 2rem;
}

.wc-email-otp-login h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.wc-email-otp-login .form-row {
    margin-bottom: 1rem;
}

/* Style the input fields to match the WooCommerce/WoodMart look */
.wc-email-otp-login input[type="email"],
.wc-email-otp-login input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 25px;
    background-color: #f7f7f7;
    color: #333;
    box-sizing: border-box;
}

/* Green accent button similar to WoodMart's login button */
.wc-email-otp-login .button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 25px;
    border: none;
    background-color: #8BC34A;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 0.5rem;
}

.wc-email-otp-login .button:hover {
    background-color: #7AA93C;
}

/* Message styling */
.wc-email-otp-message {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.wc-email-otp-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wc-email-otp-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/*
 * Align the OTP login box with the WooCommerce login form on larger screens.  The
 * login form typically has a fixed width inside a grid column; without this
 * rule the OTP box can expand to the full page width.  Adjust the max-width
 * value to match your login form’s width (measured in your browser’s dev tools).
 */
@media (min-width: 992px) {
    .wc-email-otp-login {
        max-width: 480px;
        margin-top: 1rem;
    }
}