/* Login-Seite (aus login.html ausgelagert, CSP) */
/* Login v4 – komplett inline (Hopi-Vorlage), keine externen CSS nötig */
:root {
    --brand: #ec6707;
    --brand2: #ec6707;
    --ink: #0b2a57;
    --muted: #6a7b93;
    --line: #e6ecf4;
    --hero: #0b2a57;
    --hero-2: #062244;
    --danger: #dc2626;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ── Linke Spalte: Branding ── */
.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(145deg, var(--hero), var(--hero-2));
    color: #fff;
    overflow: hidden;
}
.login-brand__glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 380px at 18% 22%, rgba(236,103,7,.32), transparent 62%),
        radial-gradient(560px 320px at 88% 78%, rgba(67,181,232,.16), transparent 60%);
    pointer-events: none;
}
.login-brand__inner { position: relative; max-width: 400px; width: 100%; }
.login-brand__logo {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    display: grid; place-items: center; font-weight: 800; font-size: 18px;
    box-shadow: 0 12px 28px rgba(236,103,7,.38);
    margin-bottom: 22px;
}
.login-brand__kicker {
    margin: 0 0 10px; font-size: 12px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.72);
}
.login-brand__title {
    margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.1; letter-spacing: -.03em; font-weight: 800;
}
.login-brand__text {
    margin: 0 0 24px; font-size: 16px; line-height: 1.65;
    color: rgba(255,255,255,.82);
}
.login-brand__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.login-brand__list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: rgba(255,255,255,.9);
}
.login-brand__list li::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 4px rgba(236,103,7,.22); flex-shrink: 0;
}

/* ── Rechte Spalte: Hopi auth-page 1:1 ── */
.login-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero), var(--hero-2));
}
.login-main__hero {
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 20% 20%, rgba(236,103,7,.25), transparent 60%),
        radial-gradient(700px 360px at 85% 30%, rgba(67,181,232,.14), transparent 60%);
    pointer-events: none;
}

/* Hopi auth-card – exakt wie login.php */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 38px 34px;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.auth-card__brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--ink); margin-bottom: 24px;
}
.auth-card__logo {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: 15px;
}
.auth-card__title { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; color: var(--ink); }
.auth-card__subtitle { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-card__hint { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
    color: var(--muted); text-transform: uppercase;
}
.field__input {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 8px;
    font: inherit; color: var(--ink); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.field__input:focus {
    outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(236,103,7,.14);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 22px; border-radius: 999px; border: none;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease;
}
.btn--accent {
    width: 100%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    box-shadow: 0 8px 20px rgba(236,103,7,.28);
}
.btn--accent:hover { box-shadow: 0 12px 26px rgba(236,103,7,.35); transform: translateY(-1px); }
.btn--accent:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.alert {
    padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
    background: rgba(220,38,38,.1); color: var(--danger);
    border: 1px solid rgba(220,38,38,.25);
}
.alert[hidden] { display: none !important; }

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { padding: 36px 24px 28px; }
    .login-brand__list { display: none; }
    .login-main { padding: 0 20px 40px; margin-top: -12px; }
}
