:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Dekorative Hintergründe */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #4338ca 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, #1e1b4b 0%, transparent 40%);
    z-index: -1;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 360px;
}

h2 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Floating Label Effekt */
.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Wenn Feld fokussiert oder Text drin ist, Label nach oben schieben */
/* 1. Wenn das Feld Fokus hat, Text enthält ODER vom Browser vorausgefüllt wurde */
.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper input:autofill + label,
.input-wrapper input:-webkit-autofill + label {
    top: -12px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--primary);
    background: #1e293b; /* Hintergrundfarbe deiner Card, damit das Label die Linie schneidet */
    padding: 0 4px;
}

/* 2. Verhindern, dass die hässliche gelbe/blaue Standard-Autofill-Farbe das Design ruiniert */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-main);
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset; /* Gleiche Farbe wie deine Card */
    transition: background-color 5000s ease-in-out 0s;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.glow-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.glow-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.footer-links {
    margin-top: 1.5rem;
    text-align: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
}




        /* Das Modal (Hintergrund) */
        .modal {
            display: none; /* Standardmäßig versteckt */
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
        }

        /* Modal Inhalt Box */
        .modal-content {
            margin: 10% auto;
            width: 90%;
            max-width: 400px;
            position: relative;
            animation: slideDown 0.3s ease-out;
        }

        @keyframes slideDown {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* Schließen Button */
        .close-btn {
            position: absolute;
            right: 20px;
            top: 15px;
            font-size: 28px;
            cursor: pointer;
            color: #888;
        }

        .close-btn:hover { color: #fff; }


/* ── Login Loader Overlay ─────────────────────────────────── */
.login-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, .97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: llFadeIn .22s ease forwards;
}
.login-loader[hidden] { display: none; }

@keyframes llFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ll-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: min(360px, 88vw);
}

/* Icon / Shield */
.ll-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(99, 102, 241, .12);
    border: 1.5px solid rgba(99, 102, 241, .38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    overflow: hidden;
    animation: llPulse 1.8s ease-in-out infinite;
}
@keyframes llPulse {
    0%,100% { box-shadow: 0 0 0 0   rgba(99,102,241,.40); }
    50%     { box-shadow: 0 0 0 16px rgba(99,102,241,.00); }
}

/* Scanning line */
.ll-icon-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.9), transparent);
    animation: llScan 1.6s linear infinite;
}
@keyframes llScan {
    from { top: -3px; }
    to   { top: 100%;  }
}

.ll-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    letter-spacing: .01em;
    margin-bottom: -8px;
}

.ll-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    letter-spacing: .02em;
}

/* Progress bar */
.ll-progress-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.07);
    border-radius: 2px;
    overflow: hidden;
}
.ll-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a5b4fc);
    border-radius: 2px;
}

/* Steps */
.ll-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.28);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .22s ease, transform .22s ease, color .22s ease;
}
#llStepInitText {
    white-space: pre-line;
    line-height: 1.35;
}
.ll-step.is-visible { opacity: 1; transform: translateX(0); }
.ll-step.is-active  { color: rgba(255,255,255,.82); }
.ll-step.is-done    { color: rgba(58, 201, 124, .82); }
.ll-step.is-error   { color: rgba(255, 92, 122, .94); }

.ll-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.14);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.ll-step.is-active .ll-dot {
    border-color: rgba(99,102,241,.75);
    animation: llDotPulse 1s ease-in-out infinite;
}
@keyframes llDotPulse {
    0%,100% { box-shadow: 0 0 0 2px rgba(99,102,241,.35); }
    50%     { box-shadow: 0 0 0 5px rgba(99,102,241,.00); }
}
.ll-step.is-done .ll-dot {
    border-color: rgba(58,201,124,.55);
    background: rgba(58,201,124,.12);
}
.ll-step.is-done .ll-dot::after {
    content: '✓';
    color: rgba(58,201,124,.95);
    font-weight: 700;
    font-size: 10px;
}

.ll-step.is-error .ll-dot {
    border-color: rgba(255,92,122,.72);
    background: rgba(255,92,122,.12);
    box-shadow: 0 0 0 2px rgba(255,92,122,.18);
    animation: none;
}

.ll-step.is-error .ll-dot::after {
    content: '!';
    color: rgba(255,170,186,.98);
    font-weight: 800;
    font-size: 11px;
}

.ll-back-btn {
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-weight: 600;
    cursor: pointer;
}
.ll-back-btn:hover {
    background: rgba(255,255,255,.14);
}
.ll-back-btn[hidden] { display: none !important; }


/* ═══════════════════════════════════════════════════════════
   LOGIN MODAL (Landing Page Overlay)
   ═══════════════════════════════════════════════════════════ */
/* ─── Landing Page Login Modal ─── */
.landing-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.landing-modal-backdrop[hidden] {
    display: none !important;
}
.landing-modal-box {
    position: relative;
    animation: lm-fade-in .3s cubic-bezier(.16,1,.3,1);
}
@keyframes lm-fade-in {
    from { opacity: 0; transform: scale(.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Die login-card innerhalb des Modals bekommt den Original-Look */
.landing-modal-box .login-card {
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255,255,255,.05) inset;
    width: 360px;
    max-width: 90vw;
}

/* Autofill-Hack für dunklen Background im Modal */
.landing-modal-box input:-webkit-autofill,
.landing-modal-box input:-webkit-autofill:hover,
.landing-modal-box input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc;
    -webkit-box-shadow: 0 0 0px 1000px #0f172a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Floating Labels: Background muss zum Modal passen */
.landing-modal-box .input-wrapper input:focus + label,
.landing-modal-box .input-wrapper input:not(:placeholder-shown) + label,
.landing-modal-box .input-wrapper input:autofill + label,
.landing-modal-box .input-wrapper input:-webkit-autofill + label {
    background: #0f172a;
}

.landing-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(15,23,42,.90);
    color: rgba(255,255,255,.70);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background .15s, color .15s, border-color .15s;
}
.landing-modal-close:hover {
    background: rgba(255,92,122,.15);
    border-color: rgba(255,92,122,.35);
    color: rgba(255,92,122,.90);
}
