/* ==========================================================================
   LINIENFUERUNG: GATEWAY-SYSTEM (LOGIN, SETUP, RESET) | STAND: 14.08.2026
   ========================================================================== */

/* 1. SEITEN-BASIS */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #eaedf1; 
    color: #1e293b; 
    padding: 15px; 
}

/* 2. LAYOUT-KAPSEL (Zentrierung auf dem Monitor) */
.gateway-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 80vh; 
    width: 100%; 
}

/* 3. FORMULAR-KARTEN */
.login-box { 
    background: #ffffff; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    max-width: 400px; 
    width: 100%; 
    border: 1px solid #cbd5e1; 
    border-top: 4px solid #0f172a; /* Standard: Dunkles Admin-Blau */
}

/* Modifikator für abweichende Rahmenfarben */
.border-sky { 
    border-top: 4px solid #0284c7 !important; 
}

.login-titel { 
    font-size: 1.3rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
    text-align: center; 
    color: #0f172a; 
}

.gateway-text { 
    font-size: 0.85rem; 
    color: #64748b; 
    text-align: center; 
    margin-bottom: 20px; 
    line-height: 1.4; 
}

/* 4. FORMULAR-ELEMENTE */
.form-flex {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 5px; 
    font-size: 0.85rem; 
    color: #475569; 
}

.form-control { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    font-size: 0.95rem; 
    box-sizing: border-box; 
    background: #f8fafc; 
    color: #0f172a; 
}

.form-control:focus { 
    outline: none; 
    border-color: #0284c7; 
    background: #ffffff; 
}

/* 5. AKTIONEN & VERLINKEUNGEN */
.btn-submit { 
    width: 100%;
    background: #0284c7 !important; 
    color: #ffffff !important; 
    padding: 11px;
    font-size: 0.95rem;
    font-weight: bold;
    border: none !important; 
    border-radius: 4px !important; 
    cursor: pointer !important; 
    transition: background 0.15s ease-in-out !important; 
}

.btn-submit:hover { 
    background: #0369a1 !important; 
}

.gateway-footer { 
    margin-top: 20px; 
    text-align: center; 
    border-top: 1px solid #e2e8f0; 
    padding-top: 15px; 
}

.gateway-footer a { 
    font-size: 0.85rem; 
    color: #475569; 
    text-decoration: none; 
    font-weight: bold; 
}

.gateway-footer a:hover { 
    color: #0284c7; 
}

/* 6. STATUS-BADGES (ALERTS) */
.err-msg, .success-msg { 
    padding: 10px; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    margin-bottom: 15px; 
    text-align: center; 
    font-weight: bold;
}

.err-msg { 
    background: #fef2f2; 
    color: #991b1b; 
    border: 1px solid #fca5a5; 
}

.success-msg { 
    background: #f0fdf4; 
    color: #166534; 
    border: 1px solid #bbf7d0; 
}

/* 7. MOBIL-OPTIMIERUNG (TOUCH-GEEIGNET) */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .login-box { 
        max-width: 100% !important; 
        width: 100% !important; 
        box-shadow: none !important; 
        padding: 20px !important; 
    }
    .form-control, .btn-submit { 
        padding: 14px !important; 
        font-size: 16px !important; 
    }
}
