
/* Custom Login Page Styles */

/* Reset & Base */
body.page-template-page-login {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling if content fits */
}

/* Layout Container */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side: Image/Brand */
.login-visual {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
    display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .login-visual {
        display: block;
        width: 60%; /* Or flex: 1.5 */
    }
}

.login-visual img.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.visual-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.6) 100%);
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.visual-footer {
    font-size: 12px;
    opacity: 0.8;
}

.visual-footer a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

/* Right Side: Form */
.login-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px; /* Remove top/bottom padding to reduce spacing */
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .login-form-wrapper {
        width: 40%;
        margin: 0;
        padding: 0 60px; /* Slightly more side padding on desktop */
    }
}

.form-header {
    margin-bottom: 12px; /* Reduced from 24px */
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #000;
}

/* WooCommerce Form Overrides */
.woocommerce-form-login {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-form-login p.form-row {
    margin-bottom: 16px; /* Reduced spacing between inputs */
}

.woocommerce-form-login p.submit-row {
    margin-top: 100px !important;
    margin-bottom: 0 !important;
}

.woocommerce-form-login label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

/* Password Input specific */
.woocommerce-form-login .password-input {
    width: 100%;
    display: flex;
    align-items: center;
}

.woocommerce-form-login .password-input input {
    width: 100% !important;
}

.woocommerce-form-login .show-password-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    padding: 5px;
    width: 28px;
    height: 28px;
    background-image: none !important;
    box-shadow: none !important;
}

.woocommerce-form-login .show-password-input::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-color: #6b7280;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.woocommerce-form-login .show-password-input.display-password::before {
    content: "";
    background-color: #111827;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.733 5.076A10.744 10.744 0 0 1 12 5c4.596 0 8.51 2.934 9.938 7a10.722 10.722 0 0 1-1.078 2.093'/%3E%3Cpath d='M14.084 14.158a3 3 0 0 1-4.242-4.242'/%3E%3Cpath d='m2 2 20 20'/%3E%3Cpath d='M6.712 6.72A10.735 10.735 0 0 0 2.062 12 10.723 10.723 0 0 0 12 19c1.99 0 3.86-.54 5.466-1.484'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.733 5.076A10.744 10.744 0 0 1 12 5c4.596 0 8.51 2.934 9.938 7a10.722 10.722 0 0 1-1.078 2.093'/%3E%3Cpath d='M14.084 14.158a3 3 0 0 1-4.242-4.242'/%3E%3Cpath d='m2 2 20 20'/%3E%3Cpath d='M6.712 6.72A10.735 10.735 0 0 0 2.062 12 10.723 10.723 0 0 0 12 19c1.99 0 3.86-.54 5.466-1.484'/%3E%3C/svg%3E") center/contain no-repeat;
}

.woocommerce-form-login .show-password-input::after {
    content: none !important;
}

/* Input Styles */
/* Ensure wrapper positioning for absolute children */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden; /* This might hide absolute elements if not careful, but needed for corners */
    transition: border-color 0.2s;
    background: #fff;
}

.input-wrapper:focus-within {
    border-color: #000;
}

.input-prefix {
    padding: 12px 16px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-form-login input.input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb; /* Standard border for standalone inputs */
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none; /* Remove WP default shadows */
}

/* Remove border from input when inside wrapper */
.input-wrapper input.input-text {
    border: none;
    border-radius: 0;
}

.woocommerce-form-login input.input-text:focus {
    border-color: #000;
}

/* Verification Code Button */
.verify-btn {
    padding: 0 16px !important;
    height: 46px; /* Match input height */
    font-size: 14px !important;
    background: transparent !important;
    color: #000 !important;
    border: none !important;
    border-left: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    cursor: pointer;
    font-weight: 500 !important;
    white-space: nowrap;
    transition: color 0.2s;
    width: auto !important;
    margin: 0 !important;
}

.verify-btn:hover {
    color: #666 !important;
    background: #f9fafb !important;
}

/* Submit Button */
.woocommerce-form-login .form-row.submit-row button.woocommerce-form-login__submit,
.woocommerce-form-login button.button {
    width: 100%;
    background-color: #000 !important;
    color: #fff !important;
    padding: 14px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 0;
    display: flex !important;
    justify-content: center !important; /* Center text */
    align-items: center !important;
    gap: 8px;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s;
    float: none !important;
    text-transform: none !important;
    line-height: 1 !important;
    min-height: 48px !important;
}

.woocommerce-form-login .form-row.submit-row button.woocommerce-form-login__submit svg,
.woocommerce-form-login button.button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.woocommerce-form-login .form-row.submit-row button.woocommerce-form-login__submit::after,
.woocommerce-form-login button.button::after {
    content: none; /* Remove text arrow */
}

.woocommerce-form-login .form-row.submit-row button.woocommerce-form-login__submit:hover,
.woocommerce-form-login button.button:hover {
    background-color: #333 !important;
}

/* Links */
.form-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #0070f3;
    text-decoration: none;
}

.privacy-text {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* Tabs for Login Type */
.login-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px; /* Reduced from 30px */
    border-bottom: 1px solid #eee;
    padding-bottom: 8px; /* Reduced from 10px */
}

.login-tab {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    padding-bottom: 8px; /* Match container padding */
    margin-bottom: -9px; /* Overlap border */
}

.login-tab.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* Hide unwanted elements */
.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: none;
}
