/**
 * Paneluxe Login/Register Page - Clean CSS
 * Industry-Standard Implementation
 * 
 * Path: /wp-content/themes/astra-child/login-page.css
 * Version: 2.0.0
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-600: #525252;
    --color-gray-800: #262626;
    --color-error: #ef4444;
    
    --font-family: 'Poppins', sans-serif;
    --transition: 0.3s ease;
    
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    
    --radius: 0.5rem;
}

/* ============================================
   BASE RESETS
   ============================================ */
* {
    font-family: var(--font-family);
}

body.woocommerce-account {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hide default WooCommerce elements */
.woocommerce-account .entry-header,
.woocommerce-account .entry-title,
.woocommerce-account > h2 {
    display: none;
}

/* Reset container widths */
.woocommerce-account .woocommerce,
.woocommerce-account .entry-content,
.woocommerce-account .site-content,
.woocommerce-account .ast-container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================================
   MAIN LAYOUT: 50-50 SPLIT
   ============================================ */
.paneluxe-auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LEFT SIDE: Fixed Background */
.paneluxe-auth-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.paneluxe-auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.paneluxe-auth-left-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 32rem;
}

.paneluxe-welcome-text {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: var(--space-8);
    opacity: 0.8;
}

.paneluxe-main-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--color-white);
}

.paneluxe-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.9;
}

/* RIGHT SIDE: Forms */
.paneluxe-auth-right {
    margin-left: 50%;
    width: 50%;
    min-height: 100vh;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.paneluxe-auth-right-content {
    width: 100%;
    max-width: 28rem;
}

/* ============================================
   LOGO
   ============================================ */
.paneluxe-logo {
    margin-bottom: var(--space-8);
}

.paneluxe-logo img {
    max-width: 11rem;
    height: auto;
}

/* ============================================
   TABS
   ============================================ */
.paneluxe-auth-tabs {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-gray-200);
}

.paneluxe-tab {
    padding: var(--space-3) 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-600);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: -1px;
}

.paneluxe-tab.active {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
}

.paneluxe-tab:hover:not(.active) {
    color: var(--color-black);
    opacity: 0.7;
}

/* ============================================
   FORMS
   ============================================ */
.paneluxe-auth-form-wrapper {
    width: 100%;
}

/* Labels */
.paneluxe-auth-form-wrapper label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: var(--space-2);
}

.paneluxe-auth-form-wrapper .required {
    color: var(--color-error);
}

/* Inputs */
.paneluxe-auth-form-wrapper input[type="text"],
.paneluxe-auth-form-wrapper input[type="password"],
.paneluxe-auth-form-wrapper input[type="email"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--color-black);
    background: var(--color-white);
    transition: border-color var(--transition);
}

.paneluxe-auth-form-wrapper input:focus {
    outline: none;
    border-color: var(--color-black);
}

/* Form Rows */
.paneluxe-auth-form-wrapper .form-row {
    margin-bottom: var(--space-5);
}

/* Remember Me Checkbox */
.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.woocommerce-form-login__rememberme span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray-600);
}

/* Lost Password */
.woocommerce-LostPassword {
    text-align: right;
    margin-top: calc(var(--space-3) * -1);
    margin-bottom: var(--space-4);
}

.woocommerce-LostPassword a {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: color var(--transition);
}

.woocommerce-LostPassword a:hover {
    color: var(--color-black);
}

/* Buttons */
.paneluxe-auth-form-wrapper button[type="submit"],
.paneluxe-auth-form-wrapper .woocommerce-button {
    width: 100%;
    padding: var(--space-4);
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.paneluxe-auth-form-wrapper button[type="submit"]:hover {
    background: var(--color-gray-800);
    transform: translateY(-2px);
}

/* Switch Form Link */
.paneluxe-switch-form {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.paneluxe-switch-link {
    color: var(--color-black);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition);
}

.paneluxe-switch-link:hover {
    opacity: 0.7;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - var(--space-8));
    max-width: 36rem;
    margin: 0;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--color-black);
    color: var(--color-white);
    list-style: none;
}

.woocommerce-error {
    border-left: 4px solid var(--color-error);
}

.woocommerce-message {
    border-left: 4px solid #10b981;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .paneluxe-auth-container {
        flex-direction: column;
    }
    
    .paneluxe-auth-left {
        position: relative;
        width: 100%;
        height: 40vh;
    }
    
    .paneluxe-auth-right {
        margin-left: 0;
        width: 100%;
    }
    
    .paneluxe-main-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .paneluxe-auth-right {
        padding: var(--space-5);
    }
    
    .paneluxe-main-heading {
        font-size: 2rem;
    }
}
