/* ═══════════════════════════════════════════════════════════════════════
   DESIGNSTUUV® LOGIN – ENTERPRISE EDITION
   Modern, clean, responsive Login-Seite mit Mitarbeiter-Slider
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────
   1. CSS RESET & BASE STYLES
   ─────────────────────────────────────────────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* DESIGNSTUUV Brand Colors */
    --color-primary: #233645;        /* Dunkles Petrol */
    --color-secondary: #e5b7ba;      /* Kühles Rosa */
    --color-accent: #FFEF00;         /* Neon-Gelb */
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "ingra", sans-serif;
    font-weight: 200;
    font-style: normal;
    line-height: 1.5;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────────────────
   2. MAIN LAYOUT
   ─────────────────────────────────────────────────────────────────────── */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-layout {
    width: 100%;
    display: flex;
    flex-direction: row;
}

/* ───────────────────────────────────────────────────────────────────────
   3. LEFT SIDE – SLIDER MIT MITARBEITERBILDERN
   ─────────────────────────────────────────────────────────────────────── */

.login-left {
    flex: 1;
    position: relative;
    background: var(--color-white);
    overflow: hidden;
    min-height: 100vh;
}

.login-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hintergrundbild mit weißem Hintergrund/Rand */
.login-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--color-white);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-bg-image {
    width: calc(100% - 6rem);
    height: calc(100% - 6rem);
    max-width: 90%;
    max-height: 90%;
    object-fit: cover;
    object-position: center;
    transition: opacity var(--transition-slow);
    border-radius: 1.5rem;
    border: 6px solid var(--color-white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Overlay mit Zitat - transparent über Bild im rechten unteren Bereich */
.login-slider-overlay {
    position: absolute;
    bottom: var(--space-8);
    right: var(--space-8);
    max-width: 70%;
    min-width: 500px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: opacity var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Navigation-Buttons für Slider - im Textfeld */
.slider-navigation {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-2);
    z-index: 10;
    opacity: 0.8;
    transition: opacity var(--transition-base);
    pointer-events: all;
}

.login-slider-overlay:hover .slider-navigation {
    opacity: 1;
}

/* Buttons immer sichtbar machen wenn Overlay sichtbar ist */
.login-slider-overlay:not(.fade-out) .slider-navigation {
    opacity: 0.8;
}

.slider-nav-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: all;
}

.slider-nav-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

.slider-nav-button:active {
    transform: scale(0.95);
}

.slider-nav-button svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.slider-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.slider-quote {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-gray-900);
    font-style: normal;
    margin: 0 0 var(--space-4) 0;
    font-family: "ingra", sans-serif;
    padding: 0;
    padding-left: 0;
    text-indent: 0;
    margin-left: 0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
    white-space: normal;
    hanging-punctuation: none;
}

/* Einzug beim Umbruch ausrichten - alle Zeilen beginnen auf gleicher Höhe */
/* Sicherstellen, dass bei automatischen Zeilenumbrüchen keine Einrückung erfolgt */
.slider-quote::first-line {
    padding-left: 0 !important;
    text-indent: 0 !important;
    margin-left: 0 !important;
}

/* Nach <br> Zeilenumbrüchen: keine Einrückung */
.slider-quote br {
    display: block;
    content: "";
    margin: 0;
    padding: 0;
}

.slider-quote::before {
    content: '"';
    font-size: 2rem;
    color: var(--color-secondary);
    line-height: 0;
    margin-right: 0.25rem;
}

.slider-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--color-secondary);
    line-height: 0;
    margin-left: 0.25rem;
}

.slider-author {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    border-top: 2px solid var(--color-secondary);
    padding-top: var(--space-3);
}

.slider-name {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
    font-family: "ingra", sans-serif;
}

.slider-role {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-gray-600);
    margin: 0;
    font-family: "ingra", sans-serif;
}

/* Fade-Animation für Slider-Wechsel - nur Bild, nicht Container */
.login-slider-overlay.fade-out {
    opacity: 0;
}

.slider-bg-image.fade-out {
    opacity: 0;
}

/* Container bleibt immer sichtbar mit weißem Hintergrund */
.login-slider-image {
    opacity: 1 !important;
}

/* Progress Bar (optional) - Enterprise Design */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.slider-progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 7000ms linear;
    animation: none;
}

.slider-progress-bar.active {
    animation: progressBar 7000ms linear forwards;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.slider-progress-bar.active {
    width: 100%;
}

/* ───────────────────────────────────────────────────────────────────────
   4. RIGHT SIDE – LOGIN CARD
   ─────────────────────────────────────────────────────────────────────── */

.login-right {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-12);
    background: var(--color-white);
}

/* Retina-Optimierung für Desktop */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-right {
        padding: var(--space-12) var(--space-16);
    }
}

.login-card {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Retina-Optimierung für Desktop */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-card {
        max-width: 640px;
    }
}

/* Logo - viel größer und auf Bildrand-Höhe (3rem vom oberen Rand, wie linkes Bild) */
.login-logo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: var(--space-8);
    width: 100%;
    padding-top: 0;
    /* Verschiebe Logo nach oben, damit es auf gleicher Höhe wie das linke Bild ist (3rem) */
    /* Container hat padding-top: 2.5rem, Bild hat 3rem - also verschiebe um -0.5rem nach oben */
    margin-top: calc(var(--space-10) - 3rem); /* = 2.5rem - 3rem = -0.5rem (nach oben) */
    position: relative;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform var(--transition-base);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:active {
    transform: scale(0.98);
}

.logo-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-image {
    height: 120px;
    width: auto;
}

/* Retina-Optimierung für Desktop */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        height: 150px;
    }
}

/* ───────────────────────────────────────────────────────────────────────
   5. BEGRÜSSUNG (DYNAMISCH)
   ─────────────────────────────────────────────────────────────────────── */

.login-greeting {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.greeting-title {
    font-family: "lust-script-display", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.25rem;
    color: var(--color-primary);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Retina-Optimierung für Desktop */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .greeting-title {
        font-size: 2.75rem;
    }
}

.greeting-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
    font-family: "ingra", sans-serif;
}

/* Saison-/Feiertags-Badge - Osmium-Qualität Pille mit Hover-Animationen */
.greeting-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray-600);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 1;
}

.greeting-badge:hover {
    background: var(--color-gray-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Animation Container für Hover-Effekte */
.greeting-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.greeting-badge:hover::before {
    opacity: 1;
}

/* Animation Particles Container */
.greeting-badge .animation-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.greeting-badge .particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.badge-emoji,
.badge-text {
    position: relative;
    z-index: 2;
}

.badge-emoji {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-primary);
    font-family: "ingra", sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ───────────────────────────────────────────────────────────────────────
   6. ERROR/SUCCESS MESSAGES
   ─────────────────────────────────────────────────────────────────────── */

.message-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.message-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ───────────────────────────────────────────────────────────────────────
   7. LOGIN FORM
   ─────────────────────────────────────────────────────────────────────── */

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray-700);
    margin-bottom: 0;
    font-family: "ingra", sans-serif;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    padding-left: 3rem;
    font-size: 1rem;
    font-family: "ingra", sans-serif;
    font-weight: 300;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:hover {
    background: var(--color-white);
    border-color: var(--color-gray-300);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-input:focus {
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(35, 54, 69, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-input.input-with-toggle {
    padding-right: 3rem;
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

/* Input Icons */
.input-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
    pointer-events: none;
}

.input-icon-left {
    left: var(--space-4);
}

.input-icon-right {
    right: var(--space-4);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: var(--space-4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
    pointer-events: all;
}

.password-toggle:hover {
    color: var(--color-gray-600);
}

.password-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Form Options (Forgot Password) */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: calc(var(--space-2) * -1);
}

.form-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.form-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* ───────────────────────────────────────────────────────────────────────
   8. LOGIN BUTTON
   ─────────────────────────────────────────────────────────────────────── */

.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    font-size: 1rem;
    font-weight: 400;
    font-family: "ingra", sans-serif;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    background: #1a2a38;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-login:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-text {
    font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────────
   9. LOADING STATE
   ─────────────────────────────────────────────────────────────────────── */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
}

/* ───────────────────────────────────────────────────────────────────────
   10. SECURITY BADGE
   ─────────────────────────────────────────────────────────────────────── */

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray-600);
}

.security-icon {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

/* ───────────────────────────────────────────────────────────────────────
   11. FOOTER
   ─────────────────────────────────────────────────────────────────────── */

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

.footer-text,
.footer-credit {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin: 0;
}

.footer-credit {
    font-size: 1rem;
    color: var(--color-gray-500);
    font-family: "ingra", sans-serif;
}

/* ───────────────────────────────────────────────────────────────────────
   12. RESPONSIVE DESIGN
   ─────────────────────────────────────────────────────────────────────── */

/* Tablet & kleiner */
@media (max-width: 1024px) {
    .login-layout {
        flex-direction: column;
    }
    
    .login-left {
        min-height: 50vh;
        order: 2;
    }
    
    .login-right {
        order: 1;
        min-height: 50vh;
    }
    
    .login-slider-overlay {
        bottom: var(--space-6);
        right: var(--space-6);
        left: var(--space-6);
        max-width: none;
        min-width: auto;
        padding: var(--space-6) var(--space-8);
    }
    
    .login-slider-image {
        padding: 2rem;
    }
    
    .slider-bg-image {
        border-radius: 1rem;
        border: 4px solid var(--color-white);
        width: calc(100% - 4rem);
        height: calc(100% - 4rem);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .login-right {
        padding: var(--space-6) var(--space-4);
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-logo {
        margin-top: var(--space-4);
        padding-top: var(--space-4);
    }
    
    .greeting-title {
        font-size: 1.875rem;
    }
    
    .login-footer {
        padding-bottom: var(--space-8);
        margin-bottom: var(--space-4);
    }
    
    .login-slider-image {
        padding: 1.5rem;
    }
    
    .slider-bg-image {
        border-radius: 0.75rem;
        border: 3px solid var(--color-white);
        width: calc(100% - 3rem);
        height: calc(100% - 3rem);
    }
    
    .login-slider-overlay {
        min-width: auto;
        padding: var(--space-4) var(--space-6);
    }
    
    .slider-quote {
        font-size: 1.125rem;
    }
    
    .slider-name {
        font-size: 1.25rem;
    }
    
    .slider-role {
        font-size: 0.875rem;
    }
    
    .greeting-subtitle {
        font-size: 0.875rem;
    }
    
    .login-slider-overlay {
        padding: var(--space-6);
        bottom: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
    }
    
    .slider-quote {
        font-size: 1rem;
    }
    
    .logo-image {
        height: 48px;
    }
    
    .login-right {
        padding: var(--space-6) var(--space-4);
    }
    
    .login-card {
        max-width: 100%;
    }
}

/* ───────────────────────────────────────────────────────────────────────
   13. ACCESSIBILITY
   ─────────────────────────────────────────────────────────────────────── */

/* Fokus-Stile für Tastatur-Navigation */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ───────────────────────────────────────────────────────────────────────
   14. UTILITY CLASSES
   ─────────────────────────────────────────────────────────────────────── */

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
