/* Login Page Styles */

.custom-login-wrapper {
    background: #f9f9f9;
    padding: 60px 0 80px;
}

/* Page Header */
.login-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.login-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Two Column Layout */
.u-columns.col2-set {
    /* display: grid; */
    display:flex;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.u-column1,
.u-column2 {
    width: 100%;
}

/* Form Wrappers */
.login-form-wrapper,
.register-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Form Rows */
.woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-form-row label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.woocommerce-form-row label .required {
    color: #ff4444;
}

/* Input Fields */
.woocommerce-Input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #f9f9f9;
    transition: all 0.3s;
}

.woocommerce-Input:focus {
    outline: none;
    border-color: #5865F2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.woocommerce-Input::placeholder {
    color: #999;
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .woocommerce-Input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 35%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #5865F2;
}

/* Remember Me */
.form-row-remember {
    margin-bottom: 20px;
}

.form-row-remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}

.form-row-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5865F2;
}

/* Buttons */
.btn-login,
.btn-register {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
}

.btn-login {
    background: #5865F2;
    color: #fff;
}

.btn-login:hover {
    background: #4752d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn-register {
    background: #FFD700;
    color: #000;
}

.btn-register:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-login svg,
.btn-register svg {
    flex-shrink: 0;
}

/* Lost Password Link */
.lost_password {
    text-align: center;
    margin: 0;
}

.lost_password a {
    color: #5865F2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.lost_password a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Error Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid;
    list-style: none;
}

.woocommerce-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-message {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.woocommerce-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

/* Privacy Policy Text */
.woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
}

.woocommerce-privacy-policy-text a {
    color: #5865F2;
    text-decoration: none;
}

.woocommerce-privacy-policy-text a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-login-wrapper {
        padding: 40px 0 60px;
    }

    .login-title {
        font-size: 36px;
    }

    .login-subtitle {
        font-size: 15px;
    }

    .u-columns.col2-set {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-form-wrapper,
    .register-form-wrapper {
        padding: 30px 25px;
    }

    .form-section-title {
        font-size: 24px;
    }

    .woocommerce-Input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-login,
    .btn-register {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-form-wrapper,
    .register-form-wrapper {
        padding: 25px 20px;
    }

    .form-section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .woocommerce-form-row label {
        font-size: 14px;
    }

    .woocommerce-Input {
        padding: 11px 14px;
    }
}

/* Loading State */
.woocommerce-form.processing {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #5865F2;
    outline-offset: 2px;
}

/* Checkbox Custom Style */
input[type="checkbox"]:focus {
    outline: 2px solid #5865F2;
    outline-offset: 2px;
}


/* Lost Password */
/* --- Global Background and Wrapper Styles --- */
body {
    background-color: #f8f8f8; /* Light gray background */
}

.custom-login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
}

/* --- Main Titles --- */
.main-title {
    font-size: 32px;
    color: #5d54ff; /* Blue color for main title */
    margin-bottom: 5px;
}

.main-subtitle {
    font-size: 16px;
    color: #6c757d; /* Subtitle color */
    margin-bottom: 30px;
}

/* --- White Box Container --- */
.custom-login-box {
    background: #fff;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    padding: 40px;
    width: 100%;
    max-width: 450px; /* Constrain width */
    text-align: left;
}

/* Form Title inside the box */
.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* --- Input Fields --- */
/* Target WooCommerce's default input field class */
.custom-login-box .woocommerce-Input.input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 14px;
    /* Remove default focus outline and replace with a subtle blue ring */
    box-shadow: none;
    transition: border-color 0.3s;
}

.custom-login-box .woocommerce-Input.input-text:focus {
    border-color: #5d54ff;
    outline: none;
}

/* Labels */
.custom-login-box label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}
.custom-login-box label .required {
    color: #dc3545; /* Red asterisk */
}

/* --- Submit Button --- */
.btn-primary-blue {
    /* Base style for the button */
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #5d54ff; /* Your primary blue color */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
    text-transform: none; /* Override possible theme capitalization */
    line-height: 1.5; /* Ensure button text is centered */
}

.btn-primary-blue:hover {
    background-color: #4a42cc; /* Darker blue on hover */
    color: white; /* Important for WooCommerce styles */
}

/* --- Links and Info Text --- */
.recovery-info-text {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    /* Remove any default WooCommerce margin/padding */
    padding: 0;
}

.back-to-login-link {
    text-align: center;
    margin-top: 20px;
}

.back-to-login-link a {
    color: #5d54ff; /* Link color matching the blue theme */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-to-login-link a:hover {
    text-decoration: underline;
}