/* ========================================
   Lightweight Commerce - Auth Styles
   Login/Register Page
   ======================================== */

/* ========================================
   1. PAGE LAYOUT (Standalone)
   ======================================== */

.lc-auth-page {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-auth-page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.lc-auth-wrapper {
    width: 100%;
    max-width: 480px;
}

.lc-auth-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ========================================
   2. AUTH HEADER
   ======================================== */

.lc-auth-header {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    padding: 2rem 1.5rem;
    text-align: center;
}

.lc-auth-logo {
    display: inline-block;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.lc-auth-logo img {
    max-height: 40px;
    width: auto;
}

.lc-auth-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.lc-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0;
}

.lc-auth-subtitle {
    font-size: 0.875rem;
    color: #cccccc;
    margin: 0;
}

/* ========================================
   3. TABS
   ======================================== */

.lc-auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #fafbfc;
}

.lc-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lc-auth-tab:hover {
    color: #0f3460;
}

.lc-auth-tab.is-active {
    color: #0f3460;
    border-bottom-color: #0f3460;
    background: #ffffff;
}

/* ========================================
   4. CONTENT & PANELS
   ======================================== */

.lc-auth-content {
    padding: 1.5rem;
}

.lc-auth-panel {
    display: none;
}

.lc-auth-panel.is-active {
    display: block;
    animation: lcAuthFadeIn 0.3s ease;
}

@keyframes lcAuthFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   5. FORM GROUPS
   ======================================== */

.lc-form-group {
    margin-bottom: 1.25rem;
}

.lc-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.375rem;
}

.lc-form-group .required {
    color: #dc3545;
}

.lc-form-group input[type="text"],
.lc-form-group input[type="email"],
.lc-form-group input[type="tel"],
.lc-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1a1a1a;
    outline: none;
    transition: all 0.15s ease;
    min-height: 44px;
    font-family: inherit;
    box-sizing: border-box;
}

.lc-form-group input:focus {
    background: #ffffff;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
}

/* ========================================
   6. PASSWORD WRAPPER (Perfectly Centered Toggle)
   ======================================== */

.lc-password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.lc-password-wrapper input[type="password"],
.lc-password-wrapper input[type="text"] {
    padding-left: 3rem;
}

[dir="rtl"] .lc-password-wrapper input[type="password"],
[dir="rtl"] .lc-password-wrapper input[type="text"] {
    padding-left: 1rem;
    padding-right: 3rem;
}

.lc-password-toggle {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: color 0.15s ease;
    z-index: 2;
}

[dir="rtl"] .lc-password-toggle {
    left: auto;
    right: 0.5rem;
}

.lc-password-toggle:hover {
    color: #0f3460;
}

.lc-password-toggle svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   7. FORM ROWS
   ======================================== */

.lc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lc-form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lc-remember-me {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #555;
    cursor: pointer;
}

.lc-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f3460;
    cursor: pointer;
}

.lc-forgot-password {
    font-size: 0.8125rem;
    color: #0f3460;
    text-decoration: none;
    font-weight: 500;
}

.lc-forgot-password:hover {
    text-decoration: underline;
}

/* ========================================
   8. SUBMIT BUTTON
   ======================================== */

.lc-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #0f3460;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    font-family: inherit;
}

.lc-auth-submit:hover {
    background: #1a1a2e;
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
    transform: translateY(-1px);
}

/* ========================================
   9. BACK TO SITE LINK
   ======================================== */

.lc-auth-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.lc-auth-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lc-auth-footer a:hover {
    color: #0f3460;
}

/* ========================================
   10. RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .lc-auth-wrapper {
        margin: 0.5rem;
    }
    
    .lc-auth-header {
        padding: 1.5rem 1rem;
    }
    
    .lc-auth-title {
        font-size: 1.25rem;
    }
    
    .lc-auth-content {
        padding: 1rem;
    }
    
    .lc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ========================================
   11. ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .lc-auth-panel.is-active,
    .lc-auth-tab,
    .lc-auth-submit {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .lc-auth-container {
        border-width: 2px;
    }
    
    .lc-auth-submit {
        border: 2px solid #000;
    }
}