/**
 * Auth Page Styles
 * Theme: Wellbeing & Office
 * Design: "Modern Split-Card" mit Depth-of-Field Effekt
 */

/* 1. Background & Container */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background Image with Blur */
.auth-container::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    /* Team Collaboration & Wellbeing */
    background-image: url('../../images/stock/team-collaboration.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.85); /* Stärkerer Blur für sanften Hintergrund */
    z-index: 0;
    transform: scale(1.1);
}

/* Common base for both halves */
.auth-form-section, 
.auth-visual-section {
    height: 700px; /* Mehr Höhe */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- LEFT SIDE (Visual) --- */
.auth-visual-section {
    position: relative;
    width: 100%;
    max-width: 450px; /* Etwas breiter */
    order: 1;
    
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Image sharp */
.auth-visual-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../images/stock/team-collaboration.jpg');
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

/* Overlay Gradient - Subtil für mehr Bildwirkung */
.auth-visual-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Sanfter Verlauf: Weniger deckend, mehr vom Bild sichtbar */
    background: linear-gradient(180deg, rgba(26, 77, 120, 0.3) 0%, rgba(10, 142, 175, 0.75) 100%);
    z-index: 1;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Subtiler Schatten für bessere Lesbarkeit */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.auth-visual-content img {
    /* Das Logo links - GROSS und prominent */
    height: 72px; 
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
    margin-bottom: 3rem;
    opacity: 1;
}

.auth-visual-content h2 {
    font-size: 2rem; /* Emotional und einladend */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.auth-visual-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 1;
    font-weight: 400;
    max-width: 340px;
}

/* --- RIGHT SIDE (Form) --- */
.auth-form-section {
    background: white;
    width: 100%;
    max-width: 550px;
    padding: 4rem;
    order: 2;
    
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    
    position: relative;
    margin: 0;
    z-index: 10;
    box-shadow: 20px 0 40px rgba(0,0,0,0.1);
}

.auth-form-wrapper {
    width: 100%;
    /* Zentrierung des Formulars */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Logo styling RECHTS - Ausblenden, da links vorhanden */
.auth-logo {
    display: none; 
}
/* Falls wir es doch zeigen wollen, hier der Fallback-Style:
.auth-logo { margin-bottom: 2rem; text-align: center; }
.auth-logo img { height: 40px; width: auto; }
*/

.auth-title {
    font-size: 2.25rem; /* Größerer Titel */
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: left; /* Links ausgerichtet wie im Screenshot */
}

/* Zurück-Link oben links in der visuellen Spalte */
.auth-back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
    z-index: 10;
}

.auth-back-link i {
    transition: transform 0.2s ease;
}

.auth-back-link:hover {
    background-color: rgba(0, 0, 0, 0.35);
    color: white !important;
}

.auth-back-link:hover i {
    transform: translateX(-3px);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.875rem 1rem;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

.form-control:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 77, 120, 0.1);
    outline: none;
}

/* Password Toggle Button Fix */
.form-password {
    position: relative;
}
.form-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}
.form-password-toggle:hover {
    color: var(--primary);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    height: 54px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    width: 100%;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(26, 77, 120, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(26, 77, 120, 0.3);
    color: white;
    text-decoration: none;
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-forgot-link {
    color: var(--primary-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}
.auth-footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* --- MOBILER HEADER (nur auf Mobile sichtbar) --- */
.auth-mobile-header {
    display: none;
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    .auth-form-section, .auth-visual-section {
        height: auto;
        min-height: 650px;
    }
}

@media (max-width: 900px) {
    .auth-container {
        padding: 1rem;
    }
    .auth-visual-section {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        padding: 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .auth-visual-section {
        display: none; 
    }
    
    .auth-form-section {
        order: 1;
        max-width: 100%;
        border-radius: 16px;
        padding: 0;
        min-height: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    /* Desktop-Titel auf Mobile ausblenden */
    .auth-title,
    .auth-subtitle {
        display: none;
    }

    /* Mobiler Header mit blauem Hintergrund - füllt Card-Breite komplett */
    .auth-mobile-header {
        display: block;
        position: relative;
        background: linear-gradient(135deg, var(--primary, #1a4d78) 0%, var(--primary-light, #0a8eaf) 100%);
        color: white;
        padding: 3rem 2rem 1.5rem;
        margin: -2rem -2rem 2rem -2rem;
    }

    .auth-mobile-back {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        text-decoration: none;
        font-size: 1rem;
        transition: background 0.2s ease;
    }

    .auth-mobile-back:hover {
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

    .auth-mobile-title {
        font-size: 1.75rem;
        font-weight: 800;
        margin: 0 0 0.5rem;
        letter-spacing: -0.02em;
        color: white;
    }

    .auth-mobile-subtitle {
        font-size: 0.95rem;
        opacity: 0.85;
        margin: 0;
        line-height: 1.5;
    }

    /* Formular mit Padding innerhalb der Card */
    .auth-form-wrapper {
        padding: 2rem;
    }

    .auth-logo img {
        height: 48px;
    }

    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
