/* 1. Alles zurücksetzen, damit keine ungewollten Abstände entstehen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 2. Den Hintergrund mittig ausrichten */
body {
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* 3. Die weiße Box (Container) */
.login-container {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative; /* Wichtig für das Kreuz oben rechts */
}

/* 4. Das Kreuz oben rechts */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #9ca3af;
    text-decoration: none;
    line-height: 1;
}

.close-btn:hover {
    color: #1e40af; /* Dein Blau beim Drüberfahren */
}

/* 5. Überschrift */
h1, h2 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 2rem;
}

/* 6. Eingabefelder */
.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

/* 7. Dein blauer Button */
.login-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.login-btn:hover {
    background-color: #1e3a8a;
}

/* 8. Der Bereich ganz unten */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.signup-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: bold;
}

/* ─── Mobile: full-screen card from top ─── */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 0;
    }
    .login-container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 2.5rem 1.5rem;
    }
}

/* ─── Dark Mode ─── */
[data-theme="dark"] body { background-color: var(--bg-color); }
[data-theme="dark"] .login-container {
    background: #1a1d2e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
[data-theme="dark"] .close-btn { color: #6b7280; }
[data-theme="dark"] .input-group label { color: #d1d5db; }
[data-theme="dark"] .input-group input {
    background: #111827; border-color: #3d4163; color: var(--text-color);
}
[data-theme="dark"] .form-footer { border-top-color: #2d3148; }