/* ============================================================
   gSports Online – Auth-Seiten (Login, Registrierung, Passwort,
   E-Mail-Verifizierung, E-Mail/Streamlink ändern)
   Designsprache wie Dashboard/Lobby (style_games.css)
   Ersetzt style_login.css + style_register.css
   ============================================================ */

body {
    background: linear-gradient(to bottom, #09627d, #021f33);
    color: #fff;
}

/* Kopfbereich mit Grid-Hintergrund (ausgeloggter Look wie Startseite).
   flex: 1 füllt zusammen mit dem globalen Sticky-Footer die Seite. */
#banner {
    position: relative;
    flex: 1 0 auto;
    min-height: 0;
    background-image: linear-gradient(rgba(2, 31, 51, 0.35), rgba(2, 31, 51, 0.75)),
        url(../images/cover_bg_grid.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ---------- Karte ---------- */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 48px 16px 72px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #0c2a3f, #010f1d);
    border: 1px solid rgba(69, 244, 248, 0.28);
    border-radius: 14px;
    padding: 30px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.auth-card-wide {
    max-width: 480px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 6px;
}

.auth-title .accent {
    color: #45f4f8;
    text-shadow: 0 0 12px rgba(69, 244, 248, 0.6);
}

.auth-sub {
    text-align: center;
    font-size: 13px;
    color: #8ecfcf;
    margin: 0 0 20px;
}

/* ---------- Formular ---------- */
.auth-card .form-label {
    color: #9fdfe6;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-card .form-control {
    background: rgba(1, 15, 29, 0.8);
    border: 1px solid rgba(69, 244, 248, 0.3);
    color: #fff;
    border-radius: 9px;
    padding: 9px 12px;
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-card .form-control:focus {
    background: rgba(1, 15, 29, 0.9);
    border-color: #45f4f8;
    box-shadow: 0 0 8px rgba(69, 244, 248, 0.4);
    color: #fff;
}

/* Datumsfeld: Kalender-Icon auf dunklem Grund sichtbar machen */
.auth-card input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

.auth-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

/* Passwortfeld mit Auge-Toggle */
.auth-pass {
    position: relative;
}

.auth-pass .form-control {
    padding-right: 42px;
}

.auth-pass-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 42px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color 0.2s;
}

.auth-pass-toggle:hover {
    color: #45f4f8;
}

/* AGB/Datenschutz-Zustimmung */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-terms input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #45f4f8;
    cursor: pointer;
}

.auth-terms label {
    cursor: pointer;
    line-height: 1.5;
}

.auth-terms a {
    color: #45f4f8;
    text-decoration: underline;
}

/* ---------- Meldungen (Bootstrap-Alerts im Site-Stil) ---------- */
.auth-card .alert {
    border-radius: 10px;
    font-size: 13.5px;
    padding: 10px 14px;
}

.auth-card .alert-danger {
    background: rgba(255, 90, 90, 0.12);
    border: 1px solid rgba(255, 90, 90, 0.45);
    color: #ffb1b1;
}

.auth-card .alert-info {
    background: rgba(69, 244, 248, 0.1);
    border: 1px solid rgba(69, 244, 248, 0.35);
    color: #b9f6f7;
}

.auth-card .alert-success {
    background: rgba(0, 255, 120, 0.1);
    border: 1px solid rgba(0, 255, 120, 0.4);
    color: #8effbe;
}

.auth-card .alert-warning {
    background: rgba(255, 210, 63, 0.1);
    border: 1px solid rgba(255, 210, 63, 0.45);
    color: #ffe28a;
}

/* ---------- Buttons & Links ---------- */
.auth-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(45deg, #00FFFF, #FF00FF);
    border: none;
    color: #010f1d;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.2s, opacity 0.2s;
}

.auth-cta:hover:not(:disabled) {
    box-shadow: 0 0 18px rgba(69, 244, 248, 0.6);
}

.auth-cta:disabled {
    opacity: 0.45;
    cursor: default;
}

.auth-links {
    margin-top: 16px;
    text-align: center;
}

.auth-link {
    display: block;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 8px;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #45f4f8;
}

.auth-link strong {
    color: #45f4f8;
    font-weight: 600;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 18px;
    }
}
