/* ================================================================
   FIRELAX - Auth Pages (Login/Register) - Modern Split Layout
   ================================================================
   Premium Sport Supplements Shop - Dark Theme + Orange Accent
   Glassmorphism, kompakt, DSGVO-konform, Desktop First
   ================================================================ */

/* ================================================================
   BASE & RESET
   ================================================================ */

body.login-page,
body.register-page {
    margin: 0;
    padding: 0;
    background: #0f1419 !important;
    overflow-x: hidden;
}

.login-page .container,
.register-page .container {
    background: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide oder minimize Header/Footer auf Auth Pages */
.login-page .shop-header,
.register-page .shop-header,
.login-page .footer-dark,
.register-page .footer-dark {
    display: none;
}

/* ================================================================
   SPLIT LAYOUT
   ================================================================ */

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ================================================================
   LINKE SEITE: BRAND VISUAL (40-45%)
   ================================================================ */

.auth-brand-side {
    flex: 0 0 42%;
    background: linear-gradient(135deg, #1a1d23 0%, #0f1419 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dezente geometrische Patterns im Hintergrund */
.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 175, 57, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.auth-brand-side::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 175, 57, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

/* Optional: Subtile Fitness-Pattern (Kommentar entfernen falls gew³nscht)
.auth-brand-side {
    background-image: 
        linear-gradient(135deg, #1a1d23 0%, #0f1419 100%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(254, 175, 57, 0.02) 35px, rgba(254, 175, 57, 0.02) 70px);
}
*/

.auth-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: white;
}

.auth-brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #feaf39 0%, #f59e0b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(254, 175, 57, 0.35);
}

.auth-brand-logo i {
    font-size: 2.5rem;
    color: #1a1d23;
}

.auth-brand-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #feaf39 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 3rem;
    font-weight: 400;
}

.auth-trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    max-width: 280px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.trust-item i {
    color: #feaf39;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ================================================================
   RECHTE SEITE: AUTH CARD (55-60%)
   ================================================================ */

.auth-form-side {
    flex: 1;
    background: linear-gradient(135deg, #0d1015 0%, #1a1d23 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
}

/* ================================================================
   AUTH CARD (GLASSMORPHISM)
   ================================================================ */

.auth-card {
    background: rgba(26, 29, 35, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    max-width: 480px;
    width: 100%;
}

.auth-card-register {
    max-width: 550px;
}

/* ================================================================
   CARD HEADER
   ================================================================ */

.auth-card-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-card-header h3 i {
    color: #feaf39;
    font-size: 1.5rem;
}

.auth-card-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* ================================================================
   ================================================================ */

.auth-card-body {
    padding: 2rem;
}

/* ================================================================
   INFO BOX (DSGVO-HINWEIS)
   ================================================================ */

.auth-info-box {
    background: rgba(254, 175, 57, 0.08);
    border: 1px solid rgba(254, 175, 57, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(254, 175, 57, 0);
    }
    50% {
        box-shadow: 0 0 12px 0 rgba(254, 175, 57, 0.15);
    }
}

.auth-info-box i {
    color: #feaf39;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-info-box a {
    color: #feaf39;
    text-decoration: underline;
    font-weight: 600;
}

.auth-info-box a:hover {
    color: #ffc862;
}

/* ================================================================
   ALERT (ERROR MESSAGES)
   ================================================================ */

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    color: #fca5a5;
    font-size: 0.9rem;
}

.auth-alert-danger div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.auth-alert-danger div:last-child {
    margin-bottom: 0;
}

.auth-alert-danger i {
    flex-shrink: 0;
}

/* ================================================================
   FORM GROUPS
   ================================================================ */

.auth-form-group {
    margin-bottom: 1rem;
    position: relative;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #feaf39;
    box-shadow: 0 0 0 3px rgba(254, 175, 57, 0.15);
}

/* Verbesserte Fokus-States f³r Accessibility (WCAG 2.1) */
.auth-form-group input:focus-visible {
    outline: 2px solid #feaf39;
    outline-offset: 2px;
}

.auth-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #feaf39;
    outline-offset: 2px;
}

.auth-submit-btn:focus-visible,
.auth-oauth-btn:focus-visible {
    outline: 2px solid #feaf39;
    outline-offset: 2px;
}

.auth-form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Two-Column Layout for Register */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

/* ================================================================
   PASSWORD TOGGLE
   ================================================================ */

.auth-password-group {
    position: relative;
}

.auth-pw-toggle {
    position: absolute;
    right: 12px;
    top: 36px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem;
    transition: color 0.2s;
    z-index: 10;
}

.auth-pw-toggle:hover {
    color: #feaf39;
}

/* ================================================================
   HINTS & VALIDATION
   ================================================================ */

.auth-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.validation-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #fca5a5;
}

/* ================================================================
   CHECKBOX
   ================================================================ */

.auth-checkbox-group {
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 44px;
    padding: 4px 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: #feaf39;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox label {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    cursor: pointer;
    line-height: 1.4;
    font-weight: 400;
}

.auth-checkbox label a {
    color: #feaf39;
    text-decoration: underline;
    font-weight: 600;
}

.auth-checkbox label a:hover {
    color: #ffc862;
}

/* ================================================================
   OPTIONS ROW (Remember Me + Forgot Password)
   ================================================================ */

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-link-secondary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link-secondary:hover {
    color: #feaf39;
}

/* ================================================================
   SUBMIT BUTTON
   ================================================================ */

.auth-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #feaf39 0%, #f59e0b 100%);
    color: #1a1d23;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(254, 175, 57, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 175, 57, 0.45);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* ================================================================
   DIVIDER
   ================================================================ */

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    background: rgba(26, 29, 35, 0.75);
    padding: 0 1rem;
    position: relative;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ================================================================
   OAUTH BUTTONS
   ================================================================ */

.auth-oauth-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-oauth-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.auth-oauth-btn i {
    font-size: 1.1rem;
}

.google-btn:hover {
    background: rgba(234, 67, 53, 0.12);
    border-color: rgba(234, 67, 53, 0.4);
}

.microsoft-btn:hover {
    background: rgba(0, 120, 212, 0.12);
    border-color: rgba(0, 120, 212, 0.4);
}

/* ================================================================
   FOOTER
   ================================================================ */

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer > p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.auth-link-primary {
    color: #feaf39;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link-primary:hover {
    color: #ffc862;
}

.auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.auth-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-links a:hover {
    color: #feaf39;
}

.auth-footer-links span {
    color: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 1400px) {
    .auth-brand-side {
        flex: 0 0 38%;
    }
}

@media (max-width: 1200px) {
    .auth-split-layout {
        flex-direction: column;
    }
    
    .auth-brand-side {
        flex: none;
        min-height: 30vh;
        padding: 2rem;
    }
    
    .auth-brand-content h2 {
        font-size: 2rem;
    }
    
    .auth-brand-tagline {
        margin-bottom: 1.5rem;
    }
    
    .auth-trust-indicators {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }
    
    .auth-form-side {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-brand-side {
        min-height: 25vh;
        padding: 1.5rem;
    }
    
    .auth-brand-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .auth-brand-logo i {
        font-size: 2rem;
    }
    
    .auth-brand-content h2 {
        font-size: 1.75rem;
    }
    
    .auth-brand-tagline {
        font-size: 1rem;
    }
    
    .auth-trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .auth-card-body {
        padding: 1.5rem;
    }
    
    .auth-card-header {
        padding: 1.5rem 1.5rem 1.25rem;
    }
    
    .auth-card-header h3 {
        font-size: 1.5rem;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .auth-form-side {
        padding: 2rem 1rem;
    }
    
    .auth-card-body {
        padding: 1.25rem;
    }
    
    .auth-card-header {
        padding: 1.25rem;
    }
    
    /* Gr÷▀ere Touch-Targets f³r mobile */
    .auth-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .auth-checkbox label {
        font-size: 0.9rem;
    }
    
    .auth-submit-btn,
    .auth-oauth-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ================================================================
   LEGACY STYLES (firelax-login-*)
   ================================================================ */

.firelax-login-header small {
    display: block;
    margin-top: 0.35rem; /* Reduced from 10px */
    opacity: 0.85;
    color: #1a1d23;
    font-size: 0.875rem;
}

/* Body - optimized padding */
.firelax-login-body {
    padding: 1.75rem 1.75rem 1.5rem; /* Reduced from 40px 30px */
}

/* Form Groups - compact spacing */
.firelax-form-group {
    margin-bottom: 1rem; /* Reduced from 20px */
    position: relative;
}

.firelax-form-group label {
    display: block;
    margin-bottom: 0.5rem; /* Reduced from 8px */
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem; /* Slightly smaller */
}

.firelax-form-group input {
    width: 100%;
    padding: 0.7rem 0.95rem; /* Reduced from 12px 15px */
    border: 2px solid #e5e7eb;
    border-radius: 10px; /* More modern */
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.firelax-form-group input:focus {
    outline: none;
    border-color: #feaf39;
    box-shadow: 0 0 0 3px rgba(254, 175, 57, 0.12);
}

/* Password Toggle - modern positioning */
.firelax-password-group {
    position: relative;
}

.firelax-pw-toggle {
    position: absolute;
    right: 10px;
    top: 32px; /* Adjusted for smaller label */
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem;
    transition: color 0.2s;
}

.firelax-pw-toggle:hover {
    color: #feaf39;
}

/* Checkbox - compact */
.firelax-checkbox {
    display: flex;
    align-items: center;
    margin: 0.875rem 0; /* Reduced from 20px */
}

.firelax-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: #feaf39;
    cursor: pointer;
}

.firelax-checkbox label {
    margin: 0;
    color: #2c3e50;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Submit Button - modern */
.firelax-submit-btn {
    width: 100%;
    padding: 0.875rem; /* Reduced from 14px */
    background: linear-gradient(135deg, #feaf39 0%, #f59e0b 100%);
    color: #1a1d23;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem; /* Reduced from 10px */
    box-shadow: 0 2px 8px rgba(254, 175, 57, 0.25);
}

.firelax-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 175, 57, 0.35);
}

.firelax-submit-btn i {
    margin-right: 0.5rem;
}

/* Divider - compact */
.firelax-divider {
    text-align: center;
    margin: 1.25rem 0; /* Reduced from 25px */
    position: relative;
}

.firelax-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
}

.firelax-divider span {
    background: white;
    padding: 0 0.875rem;
    position: relative;
    color: #9aa0a6;
    font-size: 0.8125rem;
}

/* OAuth Buttons - compact & modern */
.firelax-oauth-btn {
    width: 100%;
    padding: 0.75rem; /* Reduced from 12px */
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem; /* Reduced from 10px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.firelax-oauth-btn:hover {
    background: #f8f9fa;
    border-color: #feaf39;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.firelax-oauth-btn i {
    margin-right: 0.625rem;
    font-size: 1.125rem;
}

.google-btn:hover { border-color: #DB4437; }
.microsoft-btn:hover { border-color: #00a4ef; }

/* Register Link - compact */
.firelax-register-link {
    text-align: center;
    margin-top: 1.25rem; /* Reduced from 25px */
    padding-top: 1.25rem; /* Reduced from 25px */
    border-top: 1px solid #e5e7eb;
    color: #6c757d;
    font-size: 0.875rem;
}

.firelax-register-link a {
    color: #feaf39;
    font-weight: 600;
    text-decoration: none;
}

.firelax-register-link a:hover {
    text-decoration: underline;
}

/* DSGVO Notice - new */
.firelax-dsgvo-notice {
    background: #f8f9fa;
    border-left: 3px solid #feaf39;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #495057;
    line-height: 1.5;
}

.firelax-dsgvo-notice i {
    color: #feaf39;
    margin-right: 0.5rem;
}

.firelax-dsgvo-notice a {
    color: #feaf39;
    text-decoration: none;
    font-weight: 600;
}

.firelax-dsgvo-notice a:hover {
    text-decoration: underline;
}

/* Alert - modern */
.firelax-alert-danger {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 10px;
    padding: 0.875rem 1rem; /* Reduced from 15px */
    margin-bottom: 1rem; /* Reduced from 20px */
    color: #c53030;
    font-size: 0.875rem;
}

.firelax-alert-danger i {
    margin-right: 0.5rem;
}

/* Footer Links - integrated in layout */
.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #9aa0a6;
}

.auth-footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: #feaf39;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .firelax-login-card {
        margin: 0.625rem;
        max-width: 100%;
    }
    
    .firelax-login-body {
        padding: 1.25rem 1rem;
    }
    
    .firelax-login-header h3 {
        font-size: 1.375rem;
    }
}

/* High-resolution optimization (?1366px height) */
@media (min-height: 1366px) {
    .firelax-login-wrapper {
        padding: 3rem 1rem;
    }
}

