/* TeakBD Split Screen Login Styles */
/* Inherits global variables from style.css */
/* --- Redundant :root block removed for robustness --- */

.teak-login-split-screen {
    display: flex;
    min-height: 600px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem auto;
    max-width: 1200px;
    width: 95%;
    font-family: var(--font-main);
}

/* Left Side - Visual */
.teak-login-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.teak-login-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0.5;
}

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.visual-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.visual-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    color: white;
}

/* Right Side - Forms */
.teak-login-forms-container {
    flex: 1;
    padding: 1rem 3rem;
    background: white;
    display: flex;
    flex-direction: column;
}

.teak-login-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.teak-tab {
    flex: 1;
    padding: 0.5rem 0.2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.teak-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.teak-form-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.teak-form-content.active {
    display: block;
}

.teak-form-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Form Elements with REM */
.woocommerce-account .woocommerce form .form-row label {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.woocommerce-Input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    transition: all 0.2s;
}

.woocommerce-Input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    outline: none;
}

.woocommerce-account .woocommerce-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    margin: 0.375rem 0;
}

.woocommerce-account .woocommerce-button:hover {
    background: var(--primary-hover);
}

.woocommerce-LostPassword a {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.woocommerce-LostPassword a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness (Stacking) */
@media (max-width: 768px) {

    .teak-login-split-screen {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .teak-login-visual {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .visual-content h2 {
        font-size: 1.75rem;
    }

    /* Fallback to px for mobile readability */
    .visual-content p {
        font-size: 1rem;
    }

    .teak-login-forms-container {
        padding: 2rem 0;
    }

    .teak-form-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .woocommerce-form-row label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .woocommerce-Input {
        padding: 0.75rem;
        font-size: 16px;
        /* 16px prevents iOS zoom */
        border-radius: 0.25rem;
    }

    .woocommerce-Input:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
        /* Matches primary glow */
    }

    .woocommerce-button {
        padding: 0.875rem;
        font-size: 1rem;
        margin-top: 0.75rem;
        border-radius: 0.25rem;
    }

    .woocommerce-form-login__rememberme {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .woocommerce-LostPassword a {
        font-size: 0.875rem;
        text-decoration: underline;
    }

    /* Hide WooCommerce default columns if they still exist */
    .u-columns {
        display: none;
    }
}