/* ===================================================
   MODERN LOGIN / REGISTRATION PAGE STYLES
   =================================================== */

/* Only constrain auth forms, not the wider account pages */
.woocommerce form.login,
.woocommerce form.register,
.woocommerce .lost_reset_password {
    max-width: 480px;
    margin: 2rem auto;
}

#customer_login {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

#customer_login .u-column1,
#customer_login .u-column2 {
    flex: 1;
    min-width: 320px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#customer_login .u-column1:hover,
#customer_login .u-column2:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.06);
}

#customer_login h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 0.75rem;
}

#customer_login h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D25627, #e0754a);
    border-radius: 2px;
}

#customer_login .woocommerce-form-row {
    margin-bottom: 1.25rem;
}

#customer_login label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.4rem;
    display: block;
}

#customer_login label .required {
    color: #e74c3c;
    border: none;
    text-decoration: none;
}

#customer_login input[type="text"],
#customer_login input[type="email"],
#customer_login input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e8e8ec;
    border-radius: 12px;
    background: #fafafa;
    color: #2d3436;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

#customer_login input[type="text"]:focus,
#customer_login input[type="email"]:focus,
#customer_login input[type="password"]:focus {
    border-color: #D25627;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(210, 86, 39, 0.1);
}

#customer_login input[type="text"]:hover,
#customer_login input[type="email"]:hover,
#customer_login input[type="password"]:hover {
    border-color: #bbb;
}

#customer_login .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 1rem;
}

#customer_login .woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #D25627;
    cursor: pointer;
}

#customer_login .button,
#customer_login button[type="submit"],
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #D25627, #e0754a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(210, 86, 39, 0.3);
    position: relative;
    overflow: hidden;
}

#customer_login .button:hover,
#customer_login button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 86, 39, 0.4);
    background: linear-gradient(135deg, #b8481f, #d66a3e);
}

#customer_login .button:active {
    transform: translateY(0);
}

#customer_login .lost_password {
    text-align: center;
    margin-top: 1rem;
}

#customer_login .lost_password a {
    color: #D25627;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

#customer_login .lost_password a:hover {
    color: #b8481f;
    text-decoration: underline;
}

/* Password auto-generation message */
.woocommerce-form-register p:has(> :only-child) {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.875rem;
    color: #0369a1;
    text-align: center;
    line-height: 1.5;
}

/* Style the WooCommerce notices on the account page */
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.9rem;
}

/* ===================================================
   LOST PASSWORD PAGE
   =================================================== */
.woocommerce-form-lost-password-wrap {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-form-lost-password-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.06);
}

.woocommerce-form-lost-password-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 0.75rem;
}

.woocommerce-form-lost-password-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D25627, #e0754a);
    border-radius: 2px;
}

.woocommerce-form-lost-password-wrap .lost_reset_password {
    display: block;
}

.woocommerce-form-lost-password-wrap .lost_reset_password > p:first-of-type {
    background: #fff7f0;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #9a3412;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.woocommerce-form-lost-password-wrap .woocommerce-form-row,
.woocommerce-form-lost-password-wrap .form-row-first,
.woocommerce-form-lost-password-wrap .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-bottom: 1.25rem;
}

.woocommerce-form-lost-password-wrap .woocommerce-form-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.4rem;
    display: block;
}

.woocommerce-form-lost-password-wrap .woocommerce-form-row label .required {
    color: #e74c3c;
    border: none;
    text-decoration: none;
}

.woocommerce-form-lost-password-wrap input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e8e8ec;
    border-radius: 12px;
    background: #fafafa;
    color: #2d3436;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.woocommerce-form-lost-password-wrap input[type="text"]:focus {
    border-color: #D25627;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(210, 86, 39, 0.1);
}

.woocommerce-form-lost-password-wrap input[type="text"]:hover {
    border-color: #bbb;
}

.woocommerce-form-lost-password-wrap .button,
.woocommerce-form-lost-password-wrap button[type="submit"],
.woocommerce-Button--lost-password {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #D25627, #e0754a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(210, 86, 39, 0.3);
}

.woocommerce-form-lost-password-wrap .button:hover,
.woocommerce-form-lost-password-wrap button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 86, 39, 0.4);
    background: linear-gradient(135deg, #b8481f, #d66a3e);
}

.woocommerce-form-lost-password-wrap .button:active {
    transform: translateY(0);
}

.woocommerce-return-to-login {
    text-align: center;
    margin-top: 1.5rem;
}

.woocommerce-return-to-login a {
    color: #D25627;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.woocommerce-return-to-login a:hover {
    color: #b8481f;
    text-decoration: underline;
}

/* ===================================================
   RESET PASSWORD PAGE
   =================================================== */
.woocommerce-form-reset-password-wrap {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-form-reset-password-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.06);
}

.woocommerce-form-reset-password-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 0.75rem;
}

.woocommerce-form-reset-password-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D25627, #e0754a);
    border-radius: 2px;
}

.woocommerce-form-reset-password-wrap .lost_reset_password {
    display: block;
}

.woocommerce-form-reset-password-wrap .lost_reset_password > p:first-of-type {
    background: #fff7f0;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #9a3412;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.woocommerce-form-reset-password-wrap .woocommerce-form-row,
.woocommerce-form-reset-password-wrap .form-row-first,
.woocommerce-form-reset-password-wrap .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-bottom: 1.25rem;
}

.woocommerce-form-reset-password-wrap .woocommerce-form-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.4rem;
    display: block;
}

.woocommerce-form-reset-password-wrap .woocommerce-form-row label .required {
    color: #e74c3c;
    border: none;
    text-decoration: none;
}

.woocommerce-form-reset-password-wrap input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e8e8ec;
    border-radius: 12px;
    background: #fafafa;
    color: #2d3436;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.woocommerce-form-reset-password-wrap input[type="password"]:focus {
    border-color: #D25627;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(210, 86, 39, 0.1);
}

.woocommerce-form-reset-password-wrap input[type="password"]:hover {
    border-color: #bbb;
}

.woocommerce-form-reset-password-wrap .button,
.woocommerce-form-reset-password-wrap button[type="submit"],
.woocommerce-Button--reset-password {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #D25627, #e0754a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(210, 86, 39, 0.3);
}

.woocommerce-form-reset-password-wrap .button:hover,
.woocommerce-form-reset-password-wrap button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 86, 39, 0.4);
    background: linear-gradient(135deg, #b8481f, #d66a3e);
}

.woocommerce-form-reset-password-wrap .button:active {
    transform: translateY(0);
}

/* Responsive: stack columns on smaller screens */
@media only screen and (max-width: 768px) {
    #customer_login {
        flex-direction: column;
    }
    #customer_login .u-column1,
    #customer_login .u-column2 {
        min-width: unset;
        width: 100%;
        padding: 2rem 1.5rem;
    }
    .woocommerce-form-lost-password-wrap,
    .woocommerce-form-reset-password-wrap {
        padding: 2rem 1.5rem;
    }
}
