/* ===========================
   Body & Hintergrund
   =========================== */
body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('boxen/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    color: #C9F1FF; /* Eisblau */
}

/* ===========================
   Login-Bereich (Neon-Glas-Look)
   =========================== */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px); /* Platz für Header/Footer */
    padding: 2rem 0;
}

.login-container {
    max-width: 400px;
    width: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.65) 60%, rgba(255,77,77,0.18) 100%);
    border-radius: 22px;
    box-shadow:
        0 4px 24px 0 rgba(0,255,136,0.18),
        0 0 0 1.5px rgba(201,241,255,0.12) inset,
        0 1.5px 24px 0 rgba(255,77,77,0.10) inset;
    color: #C9F1FF; /* Eisblau */
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    padding: 36px 32px 28px 32px;
    text-align: center;
    backdrop-filter: blur(12px) saturate(1.2);
    position: relative;
    user-select: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 8px 30px rgba(0,255,136,0.3),
        0 0 0 2px rgba(201,241,255,0.2) inset,
        0 3px 36px 0 rgba(255,77,77,0.15) inset;
}

/* Neon-Rahmen oben und unten */
.login-container::before,
.login-container::after {
    content: "";
    position: absolute;
    left: 10%; right: 10%; height: 4px;
    background: linear-gradient(90deg, #B30000, #00FF88, #FF4D4D);
    border-radius: 2px;
    filter: blur(1.5px) brightness(1.3);
    opacity: 0.85;
    animation: neon-move-horizontal 3s linear infinite alternate;
    pointer-events: none;
    z-index: 2;
}
.login-container::before { top: 0; }
.login-container::after { bottom: 0; animation-direction: reverse; }

@keyframes neon-move-horizontal {
    0% { left: 10%; right: 10%; }
    100% { left: 0; right: 0; }
}

/* Überschrift */
.login-container h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #C9F1FF; /* Eisblau */
    text-shadow: 0 2px 8px rgba(255, 77, 77, 0.12);
}

/* Fehlermeldung */
.error {
    color: #FF4D4D; /* Weihnachtsrot */
    background: rgba(255,77,77,0.15);
    border-left: 4px solid #FF4D4D;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.12);
}

/* Formular */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.login-form label {
    text-align: left;
    color: #C9F1FF; /* Eisblau */
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.input-icon {
    position: relative;
    width: 100%;
}

.input-icon input[type="text"],
.input-icon input[type="password"] {
    width: 100%;
    padding: 12px 2.5em 12px 12px;
    border: 1.5px solid #FF4D4D; /* Weihnachtsrot */
    border-radius: 12px;
    background-color: rgba(255,255,255,0.1);
    color: #C9F1FF; /* Eisblau */
    font-size: 1.1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline-offset: 2px;
    box-shadow: 0 2px 8px rgba(26,26,26,0.08);
}

.input-icon input[type="text"]:focus,
.input-icon input[type="password"]:focus {
    border-color: #00FF88; /* Neon-Weihnachtsgrün */
    box-shadow: 0 0 0 3px rgba(0,255,136,0.5);
    background-color: rgba(255,255,255,0.15);
}

.input-icon i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C9F1FF; /* Eisblau */
    font-size: 1.2em;
    pointer-events: none;
    opacity: 0.85;
    transition: color 0.3s ease;
}

.input-icon input[type="text"]:focus + i,
.input-icon input[type="password"]:focus + i {
    color: #00FF88; /* Neon-Weihnachtsgrün */
}

/* Button */
.login-btn {
    margin-top: 12px;
    background: linear-gradient(90deg, #FF4D4D 0%, #00FF88 100%);
    color: #1A1A1A; /* Dunkles Anthrazit */
    font-weight: 800;
    font-size: 1.15rem;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    box-shadow: 0 4px 18px rgba(26,26,26,0.13);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.login-btn:hover,
.login-btn:focus-visible {
    background: linear-gradient(90deg, #00FF88 0%, #FF4D4D 100%);
    color: #fff;
    transform: scale(1.04);
    outline: none;
}

/* Passwort vergessen Link */
.login-container p {
    margin-top: 1.2rem;
    font-size: 1rem;
}

.login-container a {
    color: #C9F1FF; /* Eisblau */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.login-container a:hover,
.login-container a:focus-visible {
    color: #00FF88; /* Neon-Weihnachtsgrün */
    background: transparent;
    outline-offset: 2px;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .login-container {
        padding: 24px 16px 20px 16px;
        max-width: 95vw;
    }
    main {
        padding: 1rem 0;
        min-height: unset;
    }
    .login-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .login-btn {
        font-size: 1rem;
        padding: 12px 0;
    }
}