/* Login-Seite (index.php) im neuen Design — nach Vorlage des Users (29.10.2026).
 *
 * Handgeschrieben, kein Tailwind-Build nötig: die neuen Bausteine tragen eigene Klassen (lg-*).
 * Farben, Schrift und Pastellverlauf wie im Spieler-/Trainer-Design (assets/css/player.src.css) —
 * bei Änderungen dort hier nachziehen. Immer hell: die Login-Seite hat keinen Dunkelmodus mehr.
 */

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/bricolage-latin-ext-c4c7bb6a.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/bricolage-latin-ad33cbc6.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.login-page {
    --lg-accent:       #FF5A1F;
    --lg-accent-press: #E8501A;
    --lg-link:         #C24A12;
    --lg-text:         #0E0E10;
    --lg-muted:        #6B6B73;
    font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    color: var(--lg-text);
    -webkit-font-smoothing: antialiased;
    background-color: #F3EEE9;
}
/* Pastellverlauf auf festem Pseudo-Element (bleibt beim Scrollen stehen, wie in der App) */
.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 42% at 88% 10%, rgba(255, 212, 186, 0.38) 0%, rgba(255, 212, 186, 0) 70%),
        radial-gradient(52% 38% at 8% 42%,  rgba(255, 236, 188, 0.34) 0%, rgba(255, 236, 188, 0) 70%),
        radial-gradient(70% 50% at 82% 96%, rgba(249, 204, 226, 0.34) 0%, rgba(249, 204, 226, 0) 70%),
        radial-gradient(48% 36% at 12% 100%, rgba(255, 220, 192, 0.3) 0%, rgba(255, 220, 192, 0) 70%),
        #F3EEE9;
}

.lg-logo { display: block; height: 46px; margin: 0 auto 28px; }

/* Glas-Karte */
.lg-card {
    padding: 26px 24px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(40, 24, 12, 0.08), 0 1px 2px rgba(40, 24, 12, 0.05);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}
.lg-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--lg-text); }
.lg-sub   { margin: 4px 0 22px; font-size: 15px; color: var(--lg-muted); }

/* Feld mit Beschriftung innen oben */
.lg-field {
    position: relative;
    display: block;
    margin-bottom: 14px;
    padding: 8px 14px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(14, 14, 16, 0.09);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    cursor: text;
}
.lg-field:focus-within { border-color: var(--lg-accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18); }
.lg-field > label { display: block; font-size: 12.5px; font-weight: 600; line-height: 16px; color: var(--lg-muted); cursor: text; }
.lg-field > input,
.lg-field > .lg-pw > input {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--lg-text);
}
.lg-field input::placeholder { color: #A9A9B0; }
.lg-pw { position: relative; }
.lg-pw > input { padding-right: 36px; }
.lg-pw > button {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--lg-muted);
    cursor: pointer;
}
.lg-pw > button:hover { color: var(--lg-text); }
.lg-pw > button svg { width: 21px; height: 21px; }

/* Angemeldet bleiben + Passwort vergessen */
.lg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 8px; margin: 18px 0 22px; }
.lg-check { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--lg-text); cursor: pointer; white-space: nowrap; }
.lg-check > input {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    margin: 0;
    border-radius: 6px;
    border: 1.5px solid rgba(14, 14, 16, 0.28);
    background: #fff;
    cursor: pointer;
}
.lg-check > input:checked {
    border-color: var(--lg-accent);
    background: var(--lg-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.lg-check > input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.3); }
.lg-link { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--lg-link); cursor: pointer; white-space: nowrap; }
.lg-link:hover { text-decoration: underline; }

/* Hauptknopf */
.lg-btn {
    display: block;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--lg-accent);
    box-shadow: 0 8px 18px rgba(255, 90, 31, 0.28);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background-color 150ms ease;
}
.lg-btn:hover { background: var(--lg-accent-press); }
.lg-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lg-back { display: block; width: 100%; margin-top: 12px; padding: 8px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--lg-muted); cursor: pointer; }
.lg-back:hover { color: var(--lg-text); }
.lg-hint { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: var(--lg-muted); }
.lg-msg { margin: -4px 0 14px; font-size: 14.5px; color: #248A3D; }

/* Unter der Karte */
.lg-noacc { margin: 26px 0 0; text-align: center; font-size: 14px; color: var(--lg-text); }
/* Handy: „Angemeldet bleiben" und „Passwort vergessen?" in EINER Zeile wie in der Vorlage,
   „Noch kein Konto? …" ebenso */
@media (max-width: 420px) {
    .lg-card { padding: 24px 18px 20px; }
    .lg-check, .lg-link { font-size: 14px; }
    .lg-check { gap: 8px; }
    .lg-noacc { font-size: 13px; }
}
.lg-noacc > span { color: var(--lg-link); }
.lg-legal { margin-top: 12px; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--lg-muted); }
.lg-legal a { color: var(--lg-muted); text-decoration: none; }
.lg-legal a:hover { color: var(--lg-text); }

/* Fehlermeldung + Hinweise in der Karte */
.login-page #login-error { border-radius: 12px; }

/* Hinweis „TeamFuchs als App" über der Karte: helles Glas wie die Karte */
.login-page #login-install > button {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(40, 24, 12, 0.06);
}
.login-page #login-install-cta { border-radius: 10px; background: var(--lg-accent); }
.login-page #login-install-modal > div { background: #FBF8F5; }
.login-page #login-install-modal button.bg-brand { background: var(--lg-accent); border-radius: 12px; }
