/*
 * Login-Komponente
 * Kreatives Split-Screen Design mit Animationen und Interaktivität
 */

.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Linke Seite - Branding */
.login-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b82e2d 100%);
    position: relative;
    overflow: hidden;
}

/* Dekorative Elemente */
.login-branding::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: pulse 8s ease-in-out infinite;
}

.login-branding::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: pulse 6s ease-in-out infinite reverse;
}

.login-logo-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
}

.login-logo {
    max-width: 200px;
    height: auto;
    animation: logoFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.login-logo:hover {
    transform: scale(1.05) rotate(2deg);
    animation-play-state: paused;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

.login-branding-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.login-branding-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* ============================================
   REALISTISCHE WOLKEN - HIMMELEFFEKT
   ============================================ */

/* Basis-Wolkenstil */
.login-cloud {
    position: absolute;
    pointer-events: none;
    border-radius: 100px;
}

/* Wolkenform - Pseudo-Elemente für fluffige, realistische Form */
.login-cloud::before,
.login-cloud::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

/* ============================================
   SEHR GROSSE WOLKEN (Hintergrund, langsam)
   ============================================ */

/* Wolke 1 - Riesige Wolke im Hintergrund */
.login-cloud.cloud-1 {
    top: 2%;
    left: -200px;
    width: 220px;
    height: 70px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(12px);
    z-index: 1;
    animation: cloudDriftSlow 90s linear infinite;
}
.login-cloud.cloud-1::before {
    width: 120px;
    height: 80px;
    top: -25px;
    left: 40px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(10px);
}
.login-cloud.cloud-1::after {
    width: 100px;
    height: 60px;
    top: -15px;
    left: 100px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(8px);
}

/* Wolke 2 - Große flache Wolke */
.login-cloud.cloud-2 {
    top: 18%;
    left: -180px;
    width: 200px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(10px);
    z-index: 1;
    animation: cloudDriftSlow 100s linear infinite;
    animation-delay: -40s;
}
.login-cloud.cloud-2::before {
    width: 100px;
    height: 65px;
    top: -22px;
    left: 35px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(8px);
}
.login-cloud.cloud-2::after {
    width: 90px;
    height: 50px;
    top: -12px;
    left: 90px;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(8px);
}

/* ============================================
   GROSSE WOLKEN (Mittelgrund)
   ============================================ */

/* Wolke 3 - Große markante Wolke */
.login-cloud.cloud-3 {
    top: 6%;
    left: -140px;
    width: 150px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(6px);
    z-index: 2;
    animation: cloudDriftMedium 65s linear infinite;
    animation-delay: -20s;
}
.login-cloud.cloud-3::before {
    width: 80px;
    height: 55px;
    top: -18px;
    left: 25px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(5px);
}
.login-cloud.cloud-3::after {
    width: 70px;
    height: 45px;
    top: -12px;
    left: 65px;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(5px);
}

/* Wolke 4 - Große Wolke tiefer */
.login-cloud.cloud-4 {
    top: 25%;
    left: -160px;
    width: 140px;
    height: 45px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(7px);
    z-index: 2;
    animation: cloudDriftMedium 70s linear infinite;
    animation-delay: -50s;
}
.login-cloud.cloud-4::before {
    width: 75px;
    height: 50px;
    top: -16px;
    left: 22px;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(5px);
}
.login-cloud.cloud-4::after {
    width: 65px;
    height: 40px;
    top: -10px;
    left: 60px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(5px);
}

/* ============================================
   MITTLERE WOLKEN (Vordergrund-Mitte)
   ============================================ */

/* Wolke 5 - Mittelgroße Wolke oben */
.login-cloud.cloud-5 {
    top: 10%;
    left: -100px;
    width: 110px;
    height: 38px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(4px);
    z-index: 3;
    animation: cloudDriftFast 50s linear infinite;
    animation-delay: -10s;
}
.login-cloud.cloud-5::before {
    width: 55px;
    height: 42px;
    top: -14px;
    left: 18px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(3px);
}
.login-cloud.cloud-5::after {
    width: 50px;
    height: 35px;
    top: -9px;
    left: 50px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(3px);
}

/* Wolke 6 - Mittelgroße Wolke */
.login-cloud.cloud-6 {
    top: 15%;
    left: -90px;
    width: 100px;
    height: 35px;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(5px);
    z-index: 3;
    animation: cloudDriftFast 55s linear infinite;
    animation-delay: -30s;
}
.login-cloud.cloud-6::before {
    width: 52px;
    height: 40px;
    top: -13px;
    left: 16px;
    background: rgba(255, 255, 255, 0.32);
    filter: blur(4px);
}
.login-cloud.cloud-6::after {
    width: 45px;
    height: 32px;
    top: -8px;
    left: 45px;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(4px);
}

/* Wolke 7 - Mittelgroße Wolke unten */
.login-cloud.cloud-7 {
    top: 22%;
    left: -85px;
    width: 95px;
    height: 32px;
    background: rgba(255, 255, 255, 0.26);
    filter: blur(5px);
    z-index: 3;
    animation: cloudDriftFast 48s linear infinite;
    animation-delay: -15s;
}
.login-cloud.cloud-7::before {
    width: 48px;
    height: 36px;
    top: -12px;
    left: 15px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(4px);
}
.login-cloud.cloud-7::after {
    width: 42px;
    height: 28px;
    top: -7px;
    left: 42px;
    background: rgba(255, 255, 255, 0.26);
    filter: blur(4px);
}

/* ============================================
   KLEINE WOLKEN (Vordergrund, schnell)
   ============================================ */

/* Wolke 8 - Kleine Wolke ganz oben */
.login-cloud.cloud-8 {
    top: 3%;
    left: -60px;
    width: 70px;
    height: 24px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(3px);
    z-index: 4;
    animation: cloudDriftFaster 35s linear infinite;
    animation-delay: -5s;
}
.login-cloud.cloud-8::before {
    width: 35px;
    height: 28px;
    top: -9px;
    left: 12px;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(2px);
}
.login-cloud.cloud-8::after {
    width: 32px;
    height: 22px;
    top: -5px;
    left: 32px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(2px);
}

/* Wolke 9 - Kleine Wolke */
.login-cloud.cloud-9 {
    top: 8%;
    left: -55px;
    width: 65px;
    height: 22px;
    background: rgba(255, 255, 255, 0.32);
    filter: blur(3px);
    z-index: 4;
    animation: cloudDriftFaster 38s linear infinite;
    animation-delay: -18s;
}
.login-cloud.cloud-9::before {
    width: 32px;
    height: 26px;
    top: -8px;
    left: 10px;
    background: rgba(255, 255, 255, 0.38);
    filter: blur(2px);
}
.login-cloud.cloud-9::after {
    width: 30px;
    height: 20px;
    top: -5px;
    left: 28px;
    background: rgba(255, 255, 255, 0.32);
    filter: blur(2px);
}

/* Wolke 10 - Kleine Wolke mitte */
.login-cloud.cloud-10 {
    top: 12%;
    left: -50px;
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(3px);
    z-index: 4;
    animation: cloudDriftFaster 32s linear infinite;
    animation-delay: -25s;
}
.login-cloud.cloud-10::before {
    width: 30px;
    height: 24px;
    top: -8px;
    left: 10px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(2px);
}
.login-cloud.cloud-10::after {
    width: 28px;
    height: 18px;
    top: -4px;
    left: 26px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(2px);
}

/* ============================================
   WINZIGE WOLKEN (Akzente)
   ============================================ */

/* Wolke 11 - Winzige Wolke */
.login-cloud.cloud-11 {
    top: 5%;
    left: -40px;
    width: 45px;
    height: 16px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(2px);
    z-index: 5;
    animation: cloudDriftFaster 28s linear infinite;
    animation-delay: -12s;
}
.login-cloud.cloud-11::before {
    width: 22px;
    height: 18px;
    top: -6px;
    left: 8px;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(2px);
}
.login-cloud.cloud-11::after {
    width: 20px;
    height: 14px;
    top: -3px;
    left: 20px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(2px);
}

/* Wolke 12 - Winzige Wolke unten */
.login-cloud.cloud-12 {
    top: 19%;
    left: -35px;
    width: 42px;
    height: 15px;
    background: rgba(255, 255, 255, 0.32);
    filter: blur(2px);
    z-index: 5;
    animation: cloudDriftFaster 30s linear infinite;
    animation-delay: -22s;
}
.login-cloud.cloud-12::before {
    width: 20px;
    height: 17px;
    top: -5px;
    left: 7px;
    background: rgba(255, 255, 255, 0.38);
    filter: blur(2px);
}
.login-cloud.cloud-12::after {
    width: 18px;
    height: 13px;
    top: -3px;
    left: 18px;
    background: rgba(255, 255, 255, 0.32);
    filter: blur(2px);
}

/* ============================================
   WOLKEN-ANIMATIONEN (Parallax-Effekt)
   ============================================ */

/* Langsam für große Hintergrundwolken */
@keyframes cloudDriftSlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 250px)); }
}

/* Mittel für mittlere Wolken */
@keyframes cloudDriftMedium {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* Schnell für Vordergrundwolken */
@keyframes cloudDriftFast {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 150px)); }
}

/* Noch schneller für kleine Wolken */
@keyframes cloudDriftFaster {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* ============================================
   ZUG-ANIMATION - Moderner ICE-Style
   Der Zug fährt von links nach rechts,
   daher ist die Lokomotive vorne (rechts)
   ============================================ */

/* ============================================
   OBERLEITUNG mit Masten - Realistisch
   Position relativ zum Gleis (bottom: 6%)
   ============================================ */
.overhead-line {
    position: absolute;
    bottom: calc(6% + 15px);
    left: 0;
    width: 100%;
    height: 45px;
    z-index: 4;
    pointer-events: none;
}

/* Masten - Stahlmasten (stehen direkt über dem Gleis) */
.overhead-mast {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 45px;
    background: linear-gradient(90deg,
        rgba(70, 70, 70, 0.7) 0%,
        rgba(100, 100, 100, 0.9) 30%,
        rgba(80, 80, 80, 0.8) 70%,
        rgba(60, 60, 60, 0.7) 100%);
    border-radius: 1px;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
}

/* Mast-Positionen (gleichmäßig verteilt) */
.overhead-mast:nth-child(1) { left: 8%; }
.overhead-mast:nth-child(2) { left: 22%; }
.overhead-mast:nth-child(3) { left: 36%; }
.overhead-mast:nth-child(4) { left: 50%; }
.overhead-mast:nth-child(5) { left: 64%; }
.overhead-mast:nth-child(6) { left: 78%; }
.overhead-mast:nth-child(7) { left: 92%; }

/* Mast-Ausleger (Querarm oben) */
.overhead-mast::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 20px;
    height: 3px;
    background: linear-gradient(180deg,
        rgba(90, 90, 90, 0.9) 0%,
        rgba(70, 70, 70, 0.8) 100%);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Isolatoren am Mast */
.overhead-mast::after {
    content: '';
    position: absolute;
    top: 3px;
    left: -6px;
    width: 5px;
    height: 6px;
    background: linear-gradient(180deg,
        rgba(180, 200, 180, 0.8) 0%,
        rgba(150, 170, 150, 0.9) 50%,
        rgba(120, 140, 120, 0.8) 100%);
    border-radius: 2px;
    box-shadow: 
        14px 0 0 rgba(180, 200, 180, 0.8);
}

/* Oberleitung (Fahrdraht) - auf Höhe der Mastspitze */
.overhead-wire {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(180deg,
        rgba(40, 40, 40, 0.95) 0%,
        rgba(70, 70, 70, 0.9) 50%,
        rgba(50, 50, 50, 0.85) 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* Tragseil (oben) */
.overhead-wire::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(60, 60, 60, 0.6);
}

/* Hänger zwischen Tragseil und Fahrdraht */
.overhead-wire::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: repeating-linear-gradient(90deg,
        transparent 0px,
        transparent 38px,
        rgba(70, 70, 70, 0.5) 38px,
        rgba(70, 70, 70, 0.5) 40px);
}

/* ============================================
   BODEN / SCHOTTER unter dem Gleis
   ============================================ */
.train-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(6% + 8px);
    background: linear-gradient(180deg,
        rgba(120, 100, 80, 0.5) 0%,
        rgba(100, 85, 70, 0.6) 20%,
        rgba(90, 75, 60, 0.7) 50%,
        rgba(80, 65, 50, 0.8) 100%);
    z-index: 2;
}

/* Schotter-Textur */
.train-ground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(150, 130, 110, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 30% 60%, rgba(130, 110, 90, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 50% 30%, rgba(140, 120, 100, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(120, 100, 80, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(135, 115, 95, 0.3) 1px, transparent 1px);
    background-size: 20px 15px;
}

/* Oberkante mit Gras-Andeutung */
.train-ground::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
        rgba(80, 120, 60, 0.4) 0%,
        rgba(70, 110, 50, 0.3) 25%,
        rgba(85, 125, 65, 0.35) 50%,
        rgba(75, 115, 55, 0.3) 75%,
        rgba(80, 120, 60, 0.4) 100%);
    border-radius: 0 0 2px 2px;
}

/* ============================================
   GLEISE - Realistisch mit festen Schwellen
   ============================================ */
.train-track-container {
    position: absolute;
    bottom: 6%;
    left: 0;
    width: 100%;
    height: 14px;
    z-index: 3;
}

/* Schwellen (feste Position, unter den Schienen) */
.train-sleepers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.train-sleeper {
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(139, 90, 43, 0.6) 0%, 
        rgba(101, 67, 33, 0.7) 100%);
    border-radius: 2px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Schienen (über den Schwellen) */
.train-rail {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(180deg,
        rgba(180, 180, 180, 0.9) 0%,
        rgba(140, 140, 140, 0.85) 50%,
        rgba(100, 100, 100, 0.8) 100%);
    border-radius: 1px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.25);
}

.train-rail-top {
    top: 2px;
}

.train-rail-bottom {
    bottom: 2px;
}

/* Zug-Container - Animation startet sofort */
.train-animation {
    position: absolute;
    bottom: calc(6% + 6px);
    left: -550px;
    z-index: 5;
    animation: trainMove 20s linear infinite;
    animation-delay: 0s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.train {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 3px;
}

/* ============================================
   LOKOMOTIVE (Triebkopf) - VORNE & HINTEN
   Gleiche Höhe wie Waggons (36px)
   ============================================ */
.train-engine {
    width: 70px;
    height: 36px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

/* Lok-Nase (aerodynamische Spitze) - VORDERER Triebkopf */
.train-engine.front .train-nose {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 25px;
    height: 28px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(240, 240, 240, 0.95) 100%);
    border-radius: 0 16px 6px 0;
    z-index: 2;
}

/* Gelber Akzent an der Spitze - VORNE */
.train-engine.front .train-nose::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 200, 0, 0.4) 100%);
    border-radius: 0 16px 6px 0;
}

/* Frontscheibe - VORNE */
.train-engine.front .train-nose::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 5px;
    width: 10px;
    height: 12px;
    background: rgba(100, 140, 180, 0.6);
    border-radius: 2px 6px 3px 2px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Lok-Kabine - VORNE */
.train-engine.front .train-cabin {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 48px;
    height: 28px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(245, 245, 245, 0.95) 100%);
    border-radius: 3px 3px 0 0;
    z-index: 1;
}

/* Seitenfenster der Lok - VORNE */
.train-engine.front .train-cabin::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 5px;
    width: 10px;
    height: 12px;
    background: rgba(100, 140, 180, 0.5);
    border-radius: 2px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        15px 0 0 rgba(100, 140, 180, 0.5),
        15px 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Roter Streifen (DB Design) - VORNE */
.train-engine.front .train-stripe {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 48px;
    height: 4px;
    background: var(--primary-color);
    z-index: 3;
}

/* ============================================
   HINTERER Triebkopf - Spiegelt den Zug ab
   ============================================ */
.train-engine.rear .train-nose {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 25px;
    height: 28px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(240, 240, 240, 0.95) 100%);
    border-radius: 16px 0 0 6px;
    z-index: 2;
}

/* Gelber Akzent - HINTEN */
.train-engine.rear .train-nose::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(270deg, 
        transparent 0%, 
        rgba(255, 200, 0, 0.4) 100%);
    border-radius: 16px 0 0 6px;
}

/* Heckscheibe - HINTEN */
.train-engine.rear .train-nose::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    width: 10px;
    height: 12px;
    background: rgba(100, 140, 180, 0.6);
    border-radius: 6px 2px 2px 3px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Lok-Kabine - HINTEN */
.train-engine.rear .train-cabin {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 48px;
    height: 28px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(245, 245, 245, 0.95) 100%);
    border-radius: 3px 3px 0 0;
    z-index: 1;
}

/* Seitenfenster - HINTEN */
.train-engine.rear .train-cabin::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 5px;
    width: 10px;
    height: 12px;
    background: rgba(100, 140, 180, 0.5);
    border-radius: 2px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        -15px 0 0 rgba(100, 140, 180, 0.5),
        -15px 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Roter Streifen - HINTEN */
.train-engine.rear .train-stripe {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 48px;
    height: 4px;
    background: var(--primary-color);
    z-index: 3;
}

/* Pantograph (Stromabnehmer) - reicht bis zur Oberleitung */
.train-pantograph {
    position: absolute;
    left: 20px;
    bottom: 36px;
    width: 3px;
    height: 10px;
    background: linear-gradient(180deg,
        rgba(80, 80, 80, 0.9) 0%,
        rgba(100, 100, 100, 0.8) 50%,
        rgba(80, 80, 80, 0.9) 100%);
    z-index: 6;
    transform-origin: bottom center;
}

/* Unterer Scherenarm */
.train-pantograph::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: -3px;
    width: 8px;
    height: 2px;
    background: rgba(90, 90, 90, 0.9);
    border-radius: 1px;
    transform: rotate(-10deg);
    transform-origin: right center;
    box-shadow: 
        -2px 3px 0 rgba(90, 90, 90, 0.9),
        5px 3px 0 rgba(90, 90, 90, 0.9);
}

/* Schleifstück oben (Kontakt zur Oberleitung) */
.train-pantograph::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -5px;
    width: 12px;
    height: 3px;
    background: linear-gradient(180deg,
        rgba(50, 50, 50, 1) 0%,
        rgba(80, 80, 80, 0.9) 50%,
        rgba(60, 60, 60, 1) 100%);
    border-radius: 1px;
    box-shadow: 
        0 -1px 2px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Elektrischer Funkeneffekt am Pantographen - Hauptblitz */
.train-engine.front::after {
    content: '';
    position: absolute;
    left: 17px;
    bottom: 44px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(150, 220, 255, 0.95) 25%,
        rgba(80, 180, 255, 0.7) 45%,
        transparent 65%);
    border-radius: 50%;
    animation: electricSpark 2.5s ease-in-out infinite;
    opacity: 0;
    z-index: 10;
    filter: blur(0.3px);
    box-shadow:
        0 0 6px rgba(150, 220, 255, 1),
        0 0 12px rgba(100, 180, 255, 0.7),
        0 0 20px rgba(80, 150, 255, 0.4);
}

/* Hauptfunken-Animation mit unregelmäßigem Timing */
@keyframes electricSpark {
    0%, 8%, 12%, 35%, 42%, 65%, 72%, 100% {
        opacity: 0;
        transform: scale(0.3);
    }
    9%, 10% {
        opacity: 1;
        transform: scale(1.4);
    }
    11% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    36%, 37% {
        opacity: 1;
        transform: scale(1.2);
    }
    38%, 39% {
        opacity: 0.9;
        transform: scale(1.5);
    }
    40%, 41% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    66%, 67% {
        opacity: 1;
        transform: scale(1.3);
    }
    68%, 69%, 70% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    71% {
        opacity: 1;
        transform: scale(1.6);
    }
}

/* Zusätzliche Funken mit versetztem Timing */
.train-engine.front .train-pantograph {
    position: relative;
}

/* Blitz-Effekt Container */
.train-engine.front {
    position: relative;
}

/* Zweiter Funkeneffekt für Blitz-Bursts */
.train-engine.front .train-stripe::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 34px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(200, 240, 255, 0.9) 35%,
        transparent 65%);
    border-radius: 50%;
    animation: electricSpark2 4.3s ease-in-out infinite;
    animation-delay: 0.8s;
    opacity: 0;
    z-index: 11;
    filter: blur(0.2px);
    box-shadow:
        0 0 4px rgba(200, 240, 255, 0.9),
        0 0 8px rgba(150, 200, 255, 0.6);
}

@keyframes electricSpark2 {
    0%, 18%, 28%, 55%, 100% {
        opacity: 0;
        transform: scale(0.2) translateX(0);
    }
    19%, 20% {
        opacity: 1;
        transform: scale(1.3) translateX(3px);
    }
    21% {
        opacity: 0.5;
        transform: scale(0.7) translateX(-2px);
    }
    22%, 23% {
        opacity: 1;
        transform: scale(1.5) translateX(1px);
    }
    24%, 25% {
        opacity: 0.8;
        transform: scale(1.1) translateX(-1px);
    }
    26%, 27% {
        opacity: 1;
        transform: scale(1.4) translateX(2px);
    }
    56%, 57% {
        opacity: 1;
        transform: scale(1.2) translateX(-2px);
    }
    58% {
        opacity: 0.9;
        transform: scale(1.6) translateX(1px);
    }
}

/* Dritter kleiner Funkeneffekt - subtile Bewegung */
.train-engine.front .train-cabin::before {
    content: '';
    position: absolute;
    left: 22px;
    bottom: 20px;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(180, 220, 255, 0.7) 40%,
        transparent 70%);
    border-radius: 50%;
    animation: electricSpark3 3.1s ease-in-out infinite;
    animation-delay: 1.5s;
    opacity: 0;
    z-index: 9;
}

@keyframes electricSpark3 {
    0%, 75%, 85%, 100% {
        opacity: 0;
        transform: scale(0.2);
    }
    76%, 77% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    78% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    79%, 80% {
        opacity: 1;
        transform: scale(1.4);
    }
    81%, 82% {
        opacity: 0.6;
        transform: scale(1);
    }
    83%, 84% {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

/* ============================================
   RÄDER - Korrekt positioniert auf Schienen
   ============================================ */
.train-wheel-set {
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.train-wheel {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(180, 180, 180, 1) 0%, 
        rgba(100, 100, 100, 1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(60, 60, 60, 0.8);
    animation: wheelSpin 0.25s linear infinite;
    position: relative;
}

/* Rad-Speichen */
.train-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 1px;
    background: rgba(40, 40, 40, 0.6);
    transform-origin: center;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 0 rgba(40, 40, 40, 0.6),
        0 0 0 0 rgba(40, 40, 40, 0.6);
}

/* Rad-Nabe */
.train-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   WAGGONS
   ============================================ */
.train-wagon {
    width: 55px;
    height: 36px;
    position: relative;
}

.train-wagon-body {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 28px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 248, 248, 0.95) 100%);
    border-radius: 3px;
}

/* Roter Streifen an allen Waggons */
.train-wagon-body::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

/* 2. Klasse - Viele kleine Fenster */
.train-wagon.second-class .train-wagon-body::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 8px;
    height: 12px;
    background: rgba(100, 140, 180, 0.45);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        12px 0 0 rgba(100, 140, 180, 0.45),
        12px 0 0 1px rgba(255, 255, 255, 0.9),
        24px 0 0 rgba(100, 140, 180, 0.45),
        24px 0 0 1px rgba(255, 255, 255, 0.9),
        36px 0 0 rgba(100, 140, 180, 0.45),
        36px 0 0 1px rgba(255, 255, 255, 0.9);
}

/* 1. Klasse - Größere Fenster */
.train-wagon.first-class .train-wagon-body {
    background: linear-gradient(180deg, 
        rgba(250, 250, 255, 0.98) 0%, 
        rgba(245, 245, 250, 0.95) 100%);
}

.train-wagon.first-class .train-wagon-body::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: rgba(100, 140, 180, 0.5);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        18px 0 0 rgba(100, 140, 180, 0.5),
        18px 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Speisewagen */
.train-wagon.dining .train-wagon-body {
    background: linear-gradient(180deg, 
        rgba(255, 252, 248, 0.98) 0%, 
        rgba(250, 248, 245, 0.95) 100%);
}

.train-wagon.dining .train-wagon-body::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 10px;
    height: 11px;
    background: rgba(180, 150, 120, 0.4);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        15px 0 0 rgba(180, 150, 120, 0.4),
        15px 0 0 1px rgba(255, 255, 255, 0.9),
        30px 0 0 rgba(180, 150, 120, 0.4),
        30px 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Gepäckwagen */
.train-wagon.baggage .train-wagon-body {
    background: linear-gradient(180deg, 
        rgba(240, 240, 240, 0.98) 0%, 
        rgba(235, 235, 235, 0.95) 100%);
}

.train-wagon.baggage .train-wagon-body::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 6px;
    width: 25px;
    height: 10px;
    background: rgba(120, 140, 160, 0.35);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Waggon-Räder */
.train-wagon .train-wheel-set {
    left: 8px;
    right: 8px;
}

.train-wagon .train-wheel {
    width: 9px;
    height: 9px;
}


/* ============================================
   ZUG-BEWEGUNG
   ============================================ */
@keyframes trainMove {
    0% {
        left: -650px;
    }
    100% {
        left: 110%;
    }
}

/* Rechte Seite - Formular */
.login-form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    animation: slideInRight 0.6s ease-out;
}

.login-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out 0.3s both;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 1rem;
}

/* Formular-Styles */
.login-form {
    position: relative;
}

.login-form .form-group {
    position: relative;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.5s ease-out backwards;
    padding: 0.25rem 0;
}

.login-form .form-group:nth-child(1) {
    animation-delay: 0.2s;
}

.login-form .form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.login-form .form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.login-form .form-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.login-form .form-group:focus-within .form-label i {
    transform: scale(1.1) rotate(5deg);
}

.login-form .input-wrapper {
    position: relative;
}

/* Ripple-Effekt für Inputs */
.input-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(216, 58, 56, 0.1);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.login-form .form-control {
    height: 56px;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    color: #212529;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.login-form .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
    transition: all var(--transition-base);
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(216, 58, 56, 0.1), 0 4px 12px rgba(216, 58, 56, 0.15);
    outline: none;
    background: white;
}

.login-form .form-control:focus::placeholder {
    transform: translateX(5px);
    opacity: 0.7;
}

.login-form .form-control:hover:not(:focus) {
    border-color: #ced4da;
    background: white;
}

/* Input Icons */
.login-form .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--transition-base);
}

.login-form .form-control:focus ~ .input-icon {
    color: var(--primary-color);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(216, 58, 56, 0.08);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.password-toggle i {
    font-size: 1.2rem;
}

/* Login Button */
.login-form .btn-login {
    height: 56px;
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color) 0%, #b82e2d 100%);
    border: none;
    border-radius: 12px;
    letter-spacing: 0.03em;
    animation: fadeInUp 0.5s ease-out 0.4s backwards;
}

.login-form .btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-form .btn-login:not(:disabled):hover::before {
    left: 100%;
}

.login-form .btn-login:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(216, 58, 56, 0.4);
}

.login-form .btn-login:not(:disabled):active {
    transform: translateY(0);
}

.login-form .btn-login:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading Spinner */
.btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

.btn-login.loading .spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    opacity: 0.7;
}

/* Error Message */
.login-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
    animation: shake 0.5s ease-out;
}

.login-error.show {
    display: block;
}

/* Success Message */
.login-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.login-success.show {
    display: block;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

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

/* Mobile Optimierung */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
        max-height: 100vh;
    }

    .login-branding {
        padding: 1rem 1.5rem 1.5rem;
        min-height: 35vh;
        max-height: 35vh;
    }

    /* Titel und Subtitle in Mobile verstecken für mehr Platz */
    .login-branding-title {
        display: none;
    }

    .login-branding-subtitle {
        display: none;
    }

    /* Logo höher positionieren für mehr Platz für Zug */
    .login-logo-wrapper {
        margin-top: -4rem;
    }

    .login-logo {
        max-width: 110px;
    }

    /* Zug und Gleis kleiner auf Mobile */
    .train-animation {
        transform: scale(0.65);
        transform-origin: center bottom;
        bottom: calc(6% + 2px);
    }

    .train-track-container {
        height: 10px;
    }

    .train-sleeper {
        width: 7px;
    }

    .train-rail {
        height: 2px;
    }

    /* Oberleitung kleiner auf Mobile */
    .overhead-line {
        height: 32px;
        bottom: calc(6% + 9px);
    }

    .overhead-mast {
        height: 32px;
        width: 3px;
        bottom: 0;
    }

    .overhead-mast::before {
        width: 12px;
        left: -4px;
        height: 2px;
    }

    .train-pantograph {
        height: 10px;
    }

    .overhead-mast::after {
        width: 3px;
        height: 4px;
        left: -4px;
    }

    .overhead-wire {
        top: 4px;
        height: 2px;
    }
    
    .overhead-wire::before {
        top: -4px;
        height: 1px;
    }
    
    .overhead-wire::after {
        top: -4px;
        height: 4px;
    }

    .login-form-section {
        padding: 1.5rem 1.5rem 2.5rem;
        min-height: 65vh;
        max-height: 65vh;
        overflow-y: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-header {
        margin-bottom: 1.25rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

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

@media (max-width: 768px) {
    .login-branding {
        padding: 1.5rem 1.25rem 1rem;
        min-height: 30vh;
        max-height: 30vh;
    }

    .login-branding-title {
        font-size: 1.5rem;
        margin-top: 0.75rem;
    }

    .login-branding-subtitle {
        font-size: 0.85rem;
    }

    .login-logo {
        max-width: 100px;
    }

    .login-form-section {
        padding: 1.25rem 1.25rem 2.5rem;
        min-height: 70vh;
        max-height: 70vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-header {
        margin-bottom: 1rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-title::after {
        width: 40px;
        height: 3px;
    }

    .login-subtitle {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .login-form .form-group {
        margin-bottom: 1.1rem;
        padding: 0.2rem 0;
    }

    .login-form .form-control {
        height: 50px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
        border-radius: 10px;
        padding: 0.75rem 3rem 0.75rem 1rem;
    }

    .login-form .btn-login {
        height: 50px;
        border-radius: 10px;
        margin-top: 0.6rem;
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    /* Verbesserte Touch-Targets */
    .password-toggle {
        padding: 0.75rem;
        right: 0.75rem;
    }
}

/* Extra kleine Geräte */
@media (max-width: 480px) {
    .login-branding {
        padding: 1.25rem 1rem 0.75rem;
        min-height: 28vh;
        max-height: 28vh;
    }

    .login-branding-title {
        font-size: 1.35rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .login-branding-subtitle {
        font-size: 0.8rem;
    }

    .login-logo {
        max-width: 90px;
    }

    .login-form-section {
        padding: 1rem 1rem 2.5rem;
        min-height: 72vh;
        max-height: 72vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-header {
        margin-bottom: 0.9rem;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .login-subtitle {
        font-size: 0.8rem;
    }

    .login-form .form-group {
        margin-bottom: 0.9rem;
    }

    .login-form .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .login-form .form-control {
        height: 50px;
    }

    .login-form .btn-login {
        height: 50px;
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }
}

/* Landscape Mode auf Smartphones */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .login-container {
        grid-template-columns: 40% 60%;
    }

    .login-branding {
        padding: 1.5rem;
        min-height: 100vh;
    }

    .login-branding-title {
        font-size: 1.25rem;
        margin-top: 1rem;
    }

    .login-branding-subtitle {
        font-size: 0.85rem;
    }

    .login-logo {
        max-width: 90px;
    }

    .login-form-section {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
        margin-top: 0.65rem;
    }

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

    .login-form .btn-login {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Dark Mode wird nicht unterstützt - CI verwendet helle Farben */

/* Accessibility */
.login-form .form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .login-card,
    .login-logo,
    .login-container,
    .login-error,
    .login-success,
    .login-form .form-control,
    .password-toggle,
    .btn-login {
        animation: none;
        transition: none;
    }
}
