/* ---------- Seite + Hintergrund ---------- */
body {
    min-height: 100dvh;
    padding: 1.25rem;
    background-image:
        radial-gradient(560px circle at 0% 0%,     rgba(255, 107, 107, .17), transparent 60%),
        radial-gradient(560px circle at 100% 0%,   rgba(79, 140, 255, .17),  transparent 60%),
        radial-gradient(560px circle at 0% 100%,   rgba(47, 191, 113, .15),  transparent 60%),
        radial-gradient(560px circle at 100% 100%, rgba(169, 112, 255, .17), transparent 60%),
        radial-gradient(420px circle at 50% 50%,   rgba(255, 176, 32, .08),  transparent 65%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}
 
/* ---------- Karte ---------- */
.auth-box {
    /* hellere Farbtöne für Streifen und Eingabefelder */
    --serie-bright: #ffb020;
    --buch-bright: #2fbf71;
 
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 2.4rem 2rem 1.8rem;
    text-align: center;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 28px 50px -28px rgba(30, 30, 60, .3);
    overflow: hidden;
}
 
/* Farbstreifen oben */
.auth-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--film)         0 20%,
        var(--serie-bright) 20% 40%,
        var(--buch-bright)  40% 60%,
        var(--musik)        60% 80%,
        var(--spiel)        80% 100%);
}
 
/* ---------- Kopfbereich ---------- */
.auth-box .logo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    background: var(--ink);
    border-radius: 16px;
}
 
.auth-box .logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 
.auth-box .logo:has(img) {
    background: none;
    border-radius: 0;
}
 
.auth-box h1 {
    margin: 0 0 .4rem;
    font-size: 1.5rem;
    font-weight: 700;
}
 
.auth-box .sub {
    margin: 0 0 1.3rem;
    font-size: .93rem;
    line-height: 1.45;
    color: var(--muted);
}
 
/* ---------- Medien-Icons ---------- */
.media-icons {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin: 0 0 1.7rem;
    padding: 0;
    list-style: none;
}
 
.media-icons li {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--c);
    background: var(--c-soft);
    border-radius: 12px;
    transition: transform .18s ease;
}
 
.media-icons li:hover { transform: translateY(-3px) rotate(-5deg); }
.media-icons svg { width: 19px; height: 19px; }
 
.media-icons .film  { --c: var(--film);  --c-soft: rgba(255, 107, 107, .13); }
.media-icons .serie { --c: var(--serie); --c-soft: rgba(255, 176, 32, .17); }
.media-icons .buch  { --c: var(--buch);  --c-soft: rgba(47, 191, 113, .14); }
.media-icons .musik { --c: var(--musik); --c-soft: rgba(79, 140, 255, .14); }
.media-icons .game  { --c: var(--spiel); --c-soft: rgba(169, 112, 255, .15); }
 
/* ---------- Formular ---------- */
.auth-box label {
    display: block;
    margin-bottom: 1rem;
    text-align: left;
    font-size: .82rem;
    font-weight: 600;
}
 
/* Jedes Feld bekommt beim Fokus eine andere Farbe */
.auth-box form label:nth-of-type(1) { --f: var(--musik);        --f-soft: rgba(79, 140, 255, .16); }
.auth-box form label:nth-of-type(2) { --f: var(--spiel);        --f-soft: rgba(169, 112, 255, .16); }
.auth-box form label:nth-of-type(3) { --f: var(--buch-bright);  --f-soft: rgba(47, 191, 113, .18); }
.auth-box form label:nth-of-type(4) { --f: var(--serie-bright); --f-soft: rgba(255, 176, 32, .22); }
 
.field {
    position: relative;
    display: block;
    margin-top: .35rem;
}
 
.field .ico {
    position: absolute;
    left: .95rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #a2a2af;
    pointer-events: none;
    transition: color .15s;
}
 
.field:focus-within .ico { color: var(--f); }
 
.auth-box input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .7rem .95rem .7rem 2.7rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
 
/* Platz rechts für den Passwort-Button */
.field:has(.toggle) input { padding-right: 3rem; }
 
.auth-box input::placeholder { color: #a8a8b3; }
.auth-box input:hover { border-color: var(--line-hover); }
 
.auth-box input:focus {
    outline: none;
    border-color: var(--f, var(--ink));
    box-shadow: 0 0 0 4px var(--f-soft, rgba(23, 23, 28, .08));
}
 
.auth-box input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px var(--white) inset;
}
 
/* Passwort anzeigen/verbergen */
.toggle {
    position: absolute;
    right: .35rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #a2a2af;
    background: none;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
    transition: color .15s, background .15s;
}
 
.toggle svg { width: 19px; height: 19px; }
.toggle:hover { color: var(--ink); background: #f2f2f6; }
.toggle.on { color: var(--f); }
 
/* Absenden-Button */
.auth-box button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 1.2rem;
    padding: .75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--ink);
    border: 0;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s, box-shadow .2s;
}
 
.auth-box button[type="submit"]:hover {
    background: linear-gradient(90deg, #3d6fe8, var(--spiel));
    box-shadow: 0 10px 22px -12px rgba(100, 90, 230, .7);
}
 
.auth-box button[type="submit"]:active   { transform: scale(.985); }
.auth-box button[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
 
/* ---------- Fehler + Link ---------- */
.auth-box .error {
    margin: 0;
    font-size: .86rem;
    color: var(--error);
}
 
.auth-box .error:not(:empty) { margin: .1rem 0 0; }
 
.auth-box .switch {
    margin: 1.4rem 0 0;
    font-size: .9rem;
    color: var(--muted);
}
 
.auth-box a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line-hover);
}
 
.auth-box a:hover { text-decoration-color: var(--ink); }
 
/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    body { padding: .9rem; }
    .auth-box { padding: 2rem 1.3rem 1.5rem; border-radius: 18px; }
    .auth-box h1 { font-size: 1.35rem; }
    .media-icons li { width: 36px; height: 36px; }
}
 
@media (max-height: 720px) {
    .auth-box { margin: 0 auto; }
}
 
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .media-icons li:hover { transform: none; }
}
 
/* ---------- Fehlerhafte Eingabe ---------- */
.auth-box input[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .12);
}

/* Hinweis nach dem Löschen des Kontos */
.auth-notice {
    margin: 0 0 1.2rem;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(47, 191, 113, .14);
    color: var(--ink);
    font-size: .92rem;
    text-align: left;
}
