/* Modernes Split-Screen-Login · Zeiterfassung 2026 */

:root {
    --c-primary: #094e51;
    --c-primary-dark: #0d6669;
    --c-primary-deep: #012836;
    --c-ink: #0f172a;
    --c-ink-2: #1e293b;
    --c-muted: #64748b;
    --c-line: #e2e8f0;
    --c-line-strong: #cbd5e1;
    --c-surface: #ffffff;
    --c-surface-2: #f8fafc;
    --c-err: #dc2626;
    --c-err-bg: #fef2f2;
    --c-ok: #059669;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }
body.auth {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--c-ink);
    background: var(--c-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============ Linke Seite: Marketing / Brand ============ */
.auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(96,165,250,.35) 0%, transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(9,78,81,.4) 0%, transparent 40%),
        linear-gradient(135deg, #012836 0%, #1e293b 60%, #0f172a 100%);
    color: #fff;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Grid-Muster im Hintergrund */
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, transparent 70%);
    pointer-events: none;
}

/* Glow-Blob */
.auth-brand::after {
    content: '';
    position: absolute;
    right: -20%;
    bottom: -20%;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,.25), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    display: grid;
    place-items: center;
}
.brand-logo svg { width: 24px; height: 24px; color: #fff; }
.brand-name {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .3px;
}
.brand-tag {
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    margin-top: 2px;
}

.brand-hero {
    position: relative;
    z-index: 1;
    max-width: 480px;
}
.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.5rem;
}
.brand-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}
.brand-headline {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.brand-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
    max-width: 420px;
}

.brand-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    max-width: 480px;
}
.brand-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.brand-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(96,165,250,.15);
    border: 1px solid rgba(96,165,250,.25);
    display: grid;
    place-items: center;
    color: #93c5fd;
}
.brand-feature-icon svg { width: 18px; height: 18px; }
.brand-feature-title { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.brand-feature-text { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.5; }

.brand-foot {
    position: relative;
    z-index: 1;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
}

/* ============ Rechte Seite: Form ============ */
.auth-form-wrap {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--c-surface);
    min-height: 100vh;
}
.auth-form {
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--c-ink);
    margin-bottom: .5rem;
}
.auth-sub {
    font-size: .95rem;
    color: var(--c-muted);
    margin-bottom: 2.5rem;
}

.auth-alert {
    background: var(--c-err-bg);
    color: var(--c-err);
    border-radius: 12px;
    padding: .85rem 1rem;
    font-size: .88rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    border: 1px solid #fecaca;
}
.auth-alert.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.auth-alert-icon { flex-shrink: 0; margin-top: 1px; }

.auth-field {
    margin-bottom: 1.25rem;
}
.auth-field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--c-ink-2);
    margin-bottom: .5rem;
}
.auth-field input,
.auth-field select {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--c-line);
    border-radius: 12px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--c-ink);
    background: var(--c-surface);
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none;
}
.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(9,78,81,.12);
}
.auth-field input::placeholder { color: #94a3b8; }
.auth-field-hint {
    font-size: .78rem;
    color: var(--c-muted);
    margin-top: .4rem;
}

.auth-input-icon {
    position: relative;
}
.auth-input-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--c-muted);
    pointer-events: none;
}
.auth-input-icon input { padding-left: 2.75rem; }

.auth-submit {
    width: 100%;
    padding: .95rem 1.5rem;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 1px 2px rgba(9,78,81,.2), 0 4px 12px rgba(9,78,81,.15);
}
.auth-submit:hover { background: var(--c-primary-dark); box-shadow: 0 1px 2px rgba(9,78,81,.3), 0 6px 18px rgba(9,78,81,.25); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit svg { width: 18px; height: 18px; }

.auth-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--c-muted);
}
.auth-links a {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover { text-decoration: underline; }

.auth-divider {
    margin: 2rem 0;
    height: 1px;
    background: var(--c-line);
    position: relative;
}
.auth-divider span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 .75rem;
    background: var(--c-surface);
    font-size: .75rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.auth-alt {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .85rem;
    color: var(--c-muted);
}
.auth-alt a {
    color: var(--c-ink);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 1rem;
    border: 1px solid var(--c-line);
    border-radius: 100px;
    transition: background .15s, border-color .15s;
    margin: .25rem;
}
.auth-alt a:hover { background: var(--c-surface-2); border-color: var(--c-line-strong); }

.auth-legal {
    margin-top: 2.5rem;
    text-align: center;
    font-size: .75rem;
    color: #94a3b8;
}
.auth-legal a { color: var(--c-muted); text-decoration: none; margin: 0 .5rem; }
.auth-legal a:hover { color: var(--c-ink); }

/* PIN-Kacheln optional für Portal-Login */
.auth-pin-hint {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #e8f4f4;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: .82rem;
    color: #0d6669;
}

/* Portal-Portal Header */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .7rem;
    background: #e8f4f4;
    color: #0d6669;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand {
        min-height: 240px;
        padding: 2rem 1.5rem;
    }
    .brand-hero { max-width: 100%; }
    .brand-headline { font-size: 1.75rem; }
    .brand-sub { font-size: .95rem; }
    .brand-features { display: none; }
    .brand-foot { display: none; }
    .auth-form-wrap {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
}
@media (max-width: 480px) {
    .auth-title { font-size: 1.5rem; }
    .auth-form-wrap { padding: 1.5rem 1.25rem; }
    .auth-brand { padding: 1.5rem 1.25rem; }
    .auth-brand::after { display: none; }
}
