/* Anmelde-Seiten (components/layouts/auth.blade.php): links Bühne in der Markenfarbe, rechts das Formular. */
.login-page { background: #fbf9f8; }

.login { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---- Bühne ---- */
.login__stage {
    --stage: color-mix(in srgb, var(--accent) 86%, #1a0a10);
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
    background:
        radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--accent) 60%, #000) 0%, transparent 60%),
        linear-gradient(160deg, var(--accent) 0%, var(--stage) 100%);
}
.login__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.login__stage--image::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 35%, transparent) 0%, color-mix(in srgb, var(--stage) 55%, transparent) 45%, color-mix(in srgb, var(--stage) 94%, transparent) 100%);
}
.login__rings { position: absolute; top: -8%; right: -18%; width: min(78%, 560px); z-index: -1; fill: none; stroke: #fff; stroke-width: 1; opacity: 0.16; }
.login__rings circle { transform-origin: 200px 200px; animation: login-ring 7s ease-in-out infinite; }
.login__rings circle:nth-child(2) { animation-delay: 0.5s; }
.login__rings circle:nth-child(3) { animation-delay: 1s; }
.login__rings circle:nth-child(4) { animation-delay: 1.5s; }
.login__stage--image .login__rings { opacity: 0.22; }

.login__welcome { max-width: 30rem; }
.login__eyebrow { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1.1rem; }
.login__heading { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.login__text { margin: 1.1rem 0 0; font-size: 1.08rem; line-height: 1.6; opacity: 0.92; max-width: 26rem; }
.login__home { align-self: flex-start; margin-top: 2.5rem; color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; opacity: 0.85; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 0.1rem; }
.login__home:hover { opacity: 1; border-color: #fff; }
.login__home:focus-visible { outline-color: #fff; }

/* ---- Anmeldung ---- */
.login__panel { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem); }
.login__panel:focus { outline: none; }
.login__form { width: 100%; max-width: 25rem; margin: auto; padding: 1.5rem 0; }
.login__brand { display: inline-block; margin-bottom: 2.25rem; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.login__brand img { display: block; height: 3rem; width: auto; max-width: 14rem; }
.login__form h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.15; }
.login__lead { margin: 0.35rem 0 1.6rem; color: var(--muted); }
.login__form .field input { background: #fff; }
.login__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: -0.2rem 0 1.25rem; font-size: 0.9rem; }
.login__alt { display: grid; gap: 0.7rem; }
.login__alt .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; text-decoration: none; background: #fff; }
.login__alt .btn:hover { background: #f5f0f1; }
.login__alt svg { width: 1.15rem; height: 1.15rem; flex: none; }
.login__alt .alert { margin: 0.7rem 0 0; }
.login__back { margin: 1.5rem 0 0; display: grid; gap: 0.5rem; text-align: center; font-size: 0.9rem; }
.login__help { margin: 1.6rem 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

.login__footer { margin-top: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--muted); }
.login__footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; }
.login__footer a { color: var(--muted); text-decoration: none; }
.login__footer a:hover { color: var(--navy); text-decoration: underline; }
.login__footer p { margin: 0.6rem auto 0; max-width: 28rem; line-height: 1.45; }
.login__footer .product-credit { margin-top: 0.4rem; font-size: 0.7rem; }
.login__footer .product-credit__link { color: #4a4a4a; }

/* ---- Auftritt ---- */
.login__welcome > *, .login__form > * { animation: login-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.login__welcome > :nth-child(2) { animation-delay: 0.08s; }
.login__welcome > :nth-child(3) { animation-delay: 0.16s; }
.login__form > :nth-child(n + 2) { animation-delay: 0.1s; }
.login__form > :nth-child(n + 5) { animation-delay: 0.18s; }

@keyframes login-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes login-ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.035); opacity: 0.55; } }

@media (max-width: 860px) {
    .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .login__stage { min-height: 13.5rem; padding: 1.75rem 1.25rem 1.5rem; }
    /* Schmaler Streifen: Text liegt direkt auf dem Bild, deshalb kräftigerer Schleier */
    .login__stage--image::before { background: linear-gradient(180deg, color-mix(in srgb, var(--stage) 55%, transparent) 0%, color-mix(in srgb, var(--stage) 92%, transparent) 100%); }
    .login__heading { font-size: 1.9rem; }
    .login__text { font-size: 0.98rem; margin-top: 0.6rem; }
    .login__eyebrow { margin-bottom: 0.6rem; }
    .login__home { display: none; }
    .login__rings { width: 70%; top: -30%; right: -25%; }
    .login__form { margin: 0 auto; padding-top: 0.5rem; }
    .login__brand { margin-bottom: 1.5rem; }
    .login__brand img { height: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .login__welcome > *, .login__form > *, .login__rings circle { animation: none; }
}
.login__back button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.login__back button:hover { color: var(--navy); }
