/* =====================================================
   AUTH LOGIN – MIT ENGELS811 BACKGROUND
   Engels811 Network
===================================================== */

/* ===============================
   ROOT & BODY MIT BACKGROUND
================================ */
body.auth-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    
    /* Background mit eurem Logo - DIREKTER LINK */
    background: 
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.55)
        ),
        url('https://i.ibb.co/fz3g26nZ/desktop-wallpaper-engels811.png');
    
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
}

/* Variablen für Login */
body.auth-login-page {
    --auth-bg: #070707;
    --auth-card-bg: rgba(12, 12, 12, 0.96);
    --auth-red: #d60000;
    --auth-red-glow: rgba(214, 0, 0, 0.6);
    --auth-red-soft: rgba(214, 0, 0, 0.25);
    --auth-text: #ffffff;
    --auth-text-muted: #b8b8d0;
    --auth-border: rgba(255, 255, 255, 0.08);
}

/* ===============================
   MAIN WRAPPER
================================ */
.auth-login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    
    /* Leichter roter Glow um die Login-Box */
    background: radial-gradient(
        circle at center,
        rgba(214, 0, 0, 0.08),
        transparent 50%
    );
}

/* ===============================
   CONTAINER
================================ */
.auth-login-container {
    width: 100%;
    max-width: 480px;
}

/* ===============================
   TITLE
================================ */
.auth-login-title {
    text-align: center;
    margin-bottom: 38px;
    
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    
    color: var(--auth-red);
    text-shadow: 
        0 0 20px var(--auth-red-glow),
        0 0 40px rgba(214, 0, 0, 0.4);
    
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 0 20px var(--auth-red-glow),
            0 0 40px rgba(214, 0, 0, 0.4);
    }
    50% { 
        text-shadow: 
            0 0 30px var(--auth-red-glow),
            0 0 60px rgba(214, 0, 0, 0.6);
    }
}

.auth-login-title .auth-title-text {
    color: var(--auth-text);
    opacity: 0.95;
}

/* ===============================
   ERROR BOX
================================ */
.auth-error-box {
    background: rgba(214, 0, 0, 0.18);
    border: 1px solid var(--auth-red);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #fff;
    
    box-shadow: 
        0 0 15px rgba(214, 0, 0, 0.3),
        inset 0 0 20px rgba(214, 0, 0, 0.1);
}

/* ===============================
   LOGIN FORM CARD – STÄRKERER KONTRAST
================================ */
.auth-login-form {
    background: rgba(8, 8, 8, 0.92);
    padding: 40px 38px 42px;
    border-radius: 20px;
    border: 1px solid rgba(214, 0, 0, 0.4);
    
    /* Stärkerer Blur für besseren Kontrast */
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    
    box-shadow:
        0 0 60px rgba(214, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    
    display: flex;
    flex-direction: column;
    
    transition: all 0.3s ease;
}

.auth-login-form:hover {
    border-color: rgba(214, 0, 0, 0.5);
    box-shadow:
        0 0 80px rgba(214, 0, 0, 0.45),
        0 12px 40px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ===============================
   LABELS
================================ */
.auth-form-label {
    display: block;
    font-size: 13px;
    color: var(--auth-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

/* ===============================
   INPUTS
================================ */
.auth-form-input {
    width: 100%;
    height: 46px;
    margin-bottom: 18px;
    padding: 0 14px;
    
    background: linear-gradient(180deg, #0c0c0c, #080808);
    border: 1px solid rgba(214, 0, 0, 0.2);
    border-radius: 10px;
    
    color: var(--auth-text);
    font-size: 14px;
    
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 rgba(214, 0, 0, 0);
    
    transition: all 0.2s ease;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-red);
    background: #0a0a0a;
    box-shadow: 
        0 0 20px var(--auth-red-soft),
        inset 0 0 8px rgba(214, 0, 0, 0.1);
}

.auth-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ===============================
   PASSWORD WRAPPER
================================ */
.auth-password-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.auth-password-wrapper .auth-form-input {
    padding-right: 46px;
    margin-bottom: 0;
}

/* ===============================
   EYE TOGGLE BUTTON
================================ */
.auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    
    background: none;
    border: none;
    padding: 4px;
    
    cursor: pointer;
    font-size: 18px;
    color: var(--auth-text-muted);
    
    transition: all 0.2s ease;
}

.auth-toggle-password:hover {
    color: var(--auth-red);
    transform: translateY(-50%) scale(1.15);
}

.auth-toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

/* Eye Icons */
.auth-eye-open {
    display: none;
}

.auth-toggle-password.show .auth-eye-open {
    display: inline;
}

.auth-toggle-password.show .auth-eye-closed {
    display: none;
}

/* ===============================
   REMEMBER ME
================================ */
.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 18px;
    font-size: 13px;
    color: var(--auth-text-muted);
    cursor: pointer;
    user-select: none;
}

.auth-remember-row:hover {
    color: var(--auth-text);
}

.auth-remember-checkbox {
    width: auto;
    height: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--auth-red);
}

/* ===============================
   SUBMIT BUTTON
================================ */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff1a1a, #b30000);
    color: #ffffff;
    
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-align: center;
    
    cursor: pointer;
    
    box-shadow:
        0 0 30px var(--auth-red-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::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;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 50px var(--auth-red-glow),
        0 4px 20px rgba(214, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 520px) {
    .auth-login-main {
        padding: 40px 16px;
    }
    
    .auth-login-title {
        font-size: 30px;
    }
    
    .auth-login-form {
        padding: 32px 24px 34px;
    }
}

/* ===============================
   PERFORMANCE OPTIMIZATION
================================ */
@media (prefers-reduced-motion: reduce) {
    .auth-login-title {
        animation: none;
    }
    
    .auth-submit-btn::before {
        transition: none;
    }
}