/* © HorrorJunk */
/* coded by nya & suzunay */

/* === Base === */
    .login-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 2rem 0;
        background-image: url('https://horrorjunk.de/cdn/img/uploads/media/do8KUa7ZsS.webp');
        background-size: cover;
        background-position: left center;
        background-repeat: no-repeat;
        position: relative;
    }
    .login-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.20) 100%);
        z-index: 0;
    }
    .login-section > .container { position: relative; z-index: 1; }

    /* === Card === */
    .login-card {
        background: transparent;
        border-radius: 22px;
        box-shadow:
            0 30px 80px rgba(0,0,0,0.60),
            0 0 0 1px rgba(255,255,255,0.04);
    }

    /* === Body (glass panel) === */
    .login-body {
        padding: 2.5rem;
        color: #e0e0e0;
        position: relative;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 22px;
        overflow: hidden;
        background: rgba(12, 16, 23, 0.85);
        backdrop-filter: blur(18px) saturate(1.2);
        -webkit-backdrop-filter: blur(18px) saturate(1.2);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
    }
    @media (min-width: 768px) { .login-body { padding: 3rem; } }

    /* === Header (logo + heading + subtitle) === */
    .login-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    .login-header img {
        width: 72px;
        height: auto;
        margin-bottom: 1rem;
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    }

    /* === Heading === */
    .login-heading {
        font-size: 1.7rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.5px;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    .login-accent { color: #dc2626; }
    .login-subtitle {
        color: rgba(255,255,255,0.45);
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* === Input fields + floating label === */
    .login-field { margin-bottom: 1rem; position: relative; }
    .login-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }
    .login-input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255,255,255,0.55);
        display: flex;
        align-items: center;
        pointer-events: none;
        z-index: 2;
    }
    .login-input-icon svg { width: 20px; height: 20px; }
    .login-input {
        width: 100%;
        padding: 22px 16px 8px 48px;
        height: 60px;
        background: #0c1017;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        color: #fff;
        font-size: 0.95rem;
        outline: none;
        transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .login-input::placeholder { color: transparent; }
    .login-input:focus {
        border-color: rgba(220,38,38,0.55);
        background: #0c1017;
        box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
    }
    /* Browser-Autofill (Chrome/Safari/Edge) überschreibt sonst Background + Textfarbe */
    .login-input:-webkit-autofill,
    .login-input:-webkit-autofill:hover,
    .login-input:-webkit-autofill:focus,
    .login-input:-webkit-autofill:active {
        -webkit-text-fill-color: #fff !important;
        -webkit-box-shadow: 0 0 0 1000px #0c1017 inset !important;
        box-shadow: 0 0 0 1000px #0c1017 inset !important;
        caret-color: #fff;
        border: 1px solid rgba(255,255,255,0.08);
        transition: background-color 9999s ease-in-out 0s;
    }
    .login-input:-webkit-autofill:focus {
        border-color: rgba(220,38,38,0.55);
        -webkit-box-shadow: 0 0 0 1000px rgba(220,38,38,0.10) inset, 0 0 0 3px rgba(220,38,38,0.10) !important;
        box-shadow: 0 0 0 1000px rgba(220,38,38,0.10) inset, 0 0 0 3px rgba(220,38,38,0.10) !important;
    }

    /* Floating label */
    .login-float-label {
        position: absolute;
        left: 48px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.88rem;
        color: rgba(255,255,255,0.35);
        transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
        pointer-events: none;
        z-index: 1;
        white-space: nowrap;
    }
    .login-input:not(:placeholder-shown) ~ .login-float-label,
    .login-input:focus ~ .login-float-label,
    .login-input:-webkit-autofill ~ .login-float-label {
        top: 10px;
        transform: translateY(0);
        font-size: 0.68rem;
        color: rgba(255,255,255,0.50);
        letter-spacing: 0.2px;
    }

    /* Password toggle */
    .login-input-toggle {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: rgba(255,255,255,0.3);
        display: flex;
        align-items: center;
        transition: color 0.2s;
        z-index: 2;
    }
    .login-input-toggle:hover { color: rgba(255,255,255,0.55); }

    /* === Submit === */
    .login-submit {
        width: 100%;
        padding: 13px 20px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.15s, box-shadow 0.15s;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 4px 20px rgba(185,28,28,0.35);
    }
    .login-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 28px rgba(220,38,38,0.45);
    }
    .login-submit:active { transform: translateY(0); }

    /* === Divider === */
    .login-divider {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 1.5rem 0;
        color: rgba(255,255,255,0.30);
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
    .login-divider::before, .login-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,0.07);
    }

    /* === Google Button === */
    .btn-google-login {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 0.92rem;
        font-weight: 600;
        border: 1px solid rgba(255,255,255,0.08);
        cursor: pointer;
        transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border-color 0.2s;
        text-decoration: none;
        background: #0c1017;
        color: rgba(255,255,255,0.90);
    }
    .btn-google-login:hover {
        transform: translateY(-1px);
        background: #131822;
        border-color: rgba(255,255,255,0.16);
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        color: #fff;
    }
    .btn-google-login:active { transform: translateY(0); }
    .btn-google-login svg { flex-shrink: 0; }

    /* === Links === */
    .login-links {
        margin-top: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .login-links a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: rgba(255,255,255,0.40);
        font-size: 0.82rem;
        text-decoration: none;
        transition: color 0.2s;
        padding: 4px 0;
    }
    .login-links a:hover { color: rgba(255,255,255,0.70); }
    .login-links-sep {
        color: rgba(255,255,255,0.18);
        font-size: 0.82rem;
        margin: 0 8px;
        user-select: none;
    }
    .login-register {
        margin-top: 1.2rem;
        color: rgba(255,255,255,0.40);
        font-size: 0.88rem;
        text-align: center;
    }
    .login-register a { color: #dc2626; text-decoration: none; font-weight: 600; }
    .login-register a:hover { color: #ef4444; }

    /* === Alerts === */
    .login-alert-success {
        background: rgba(40,167,69,0.08);
        border: 1px solid rgba(40,167,69,0.25);
        color: #34d058;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .login-alert-error {
        background: rgba(239,68,68,0.08);
        border: 1px solid rgba(239,68,68,0.25);
        color: #f87171;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* === Already logged in === */
    .btn-logout {
        padding: 12px;
        width: 100%;
        border-radius: 12px;
        background: rgba(220,38,38,0.08);
        border: 1px solid rgba(220,38,38,0.18);
        color: #e0e0e0;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
        text-align: center;
        display: block;
        text-decoration: none;
    }
    .btn-logout:hover { background: rgba(220,38,38,0.14); border-color: rgba(220,38,38,0.28); color: #fff; }
