/* ==========================================================================
   1. RESET & BASE STYLES (Exakt aus style.css)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. CANVAS FIXIERUNG
   ========================================================================== */
#backgroundleinwand {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
}

/* ==========================================================================
   3. INHALTS-LAYOUT
   ========================================================================== */
.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0f172a 0%, #000000bd 10%);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 24px 48px;
    width: 100%;
    border-bottom: 1px solid #ffffff38;
    background: #36363638;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #38bdf8;
    border-radius: 2px;
}

#mainNav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

/* Standard Nav-Link (Kontakt) */
#mainNav .nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#mainNav .nav-link:hover {
    color: #38bff865;
    text-shadow: 0 0 12px #38bdf8;
}

/* Professioneller Login-Button (Ganz rechts) */
#mainNav .btn-login {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 34px;
    border-radius: 8px;
    background: #0f172a79;
    border: 1px solid #ffffff44;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

#mainNav .btn-login:hover {
    background: #0f172a79;
    border-color: #38bff8fd;
    box-shadow: 0 0 20px #38bff8fd;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. LOGIN CARD (Exakte Optik der Wartungs-Card)
   ========================================================================== */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
}

.login-card {
    background: #0f172a79;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #ffffff44;
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 50px #ffffff1f, inset 0 1px 0 #ffffffb7;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 14px;
    color: #a0a0a0;
}

/* Error Box */
.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Formular Felder */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

.input-group input[type="text"],
.input-group input[type="password"], .input-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a79;
    border: 1px solid #ffffff44;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #64748b;
}

.input-group input:focus {
    border-color: #38bff8fd;
    box-shadow: 0 0 12px #38bff865;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    accent-color: #38bdf8;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #7dd3fc;
    text-shadow: 0 0 8px #38bdf8;
}

/* Submit Button im Design von .btn-login */
.btn-submit {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: #0f172a79;
    border: 1px solid #ffffff44;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #0f172a79;
    border-color: #38bff8fd;
    box-shadow: 0 0 20px #38bff8fd;
    transform: translateY(-2px);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 24px;
    font-size: 14px;
    color: #94a3b8;
    border-top: 1px solid #ffffff38;    
    background: #36363638;
}
/* ==========================================================================
   
   ========================================================================== */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}
.notification {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 18px;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.603);
}
.notification.error {
    border-left: 4px solid #ef4444;
}
.notification.success {
    border-left: 4px solid #22c55e;
}
.notification .close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    margin-left: 14px;
    transition: color 0.2s;
}
.notification .close-btn:hover {
    color: #f8fafc;
}
/* Dauerhafter Support-Hinweis im Formular bei Sperrung */
.persistent-support-box {
    background: rgba(239, 68, 68, 0.705); /* Etwas kräftigerer Hintergrund */
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #fecaca; /* Viel helleres Rot, optimal lesbar im Dark Mode */
    font-size: 13px;
    line-height: 1.5;
}

.persistent-support-box a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600; /* Noch etwas deutlicher hervorgehoben */
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}
/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 20px 24px;
    }

    .login-card {
        padding: 32px 24px;
        margin: 0 12px;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }
}
