/* =====================================================================
   Auth (Login + Registrierung in EINEM Fenster)
   Basis: bisheriges Login-Design; darunter die Registrierungs-Regeln und
   die Umschalt-Tabs. Ersetzt die zwei inline-<style>-Blöcke.
   ================================================================== */
/* =========================================================
   2026 AUTH EXPERIENCE
   Single-screen login · Desktop + Mobile · no left panel
   ========================================================= */

:root {
    --auth-bg: #06101d;
    --auth-bg-2: #0b1728;
    --auth-card: rgba(255, 255, 255, .94);
    --auth-text: #0b1220;
    --auth-muted: #64748b;
    --auth-line: #dbe3ee;
    --auth-primary: #2563eb;
    --auth-primary-2: #7c3aed;
    --auth-success: #16a34a;
    --auth-danger: #dc2626;
    --auth-radius: 24px;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--auth-bg);
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 50% -15%, rgba(59,130,246,.24), transparent 34%),
        radial-gradient(circle at 8% 80%, rgba(124,58,237,.16), transparent 30%),
        radial-gradient(circle at 92% 72%, rgba(14,165,233,.13), transparent 28%),
        linear-gradient(135deg, var(--auth-bg), var(--auth-bg-2));
}

.auth-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 34px 20px;
    isolation: isolate;
    overflow: hidden;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -4;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(59,130,246,.08) 70deg,
            transparent 125deg,
            rgba(124,58,237,.08) 210deg,
            transparent 290deg
        );
    animation: ambientRotate 28s linear infinite;
    pointer-events: none;
}

.auth-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .32;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    pointer-events: none;
}

.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: -2;
}

.ambient-a {
    width: 460px;
    height: 460px;
    top: -210px;
    left: -170px;
    background: radial-gradient(circle, rgba(37,99,235,.30), transparent 68%);
    animation: floatA 12s ease-in-out infinite;
}

.ambient-b {
    width: 520px;
    height: 520px;
    right: -240px;
    bottom: -250px;
    background: radial-gradient(circle, rgba(124,58,237,.24), transparent 68%);
    animation: floatB 15s ease-in-out infinite;
}

.ambient-c {
    width: 280px;
    height: 280px;
    right: 18%;
    top: 8%;
    background: radial-gradient(circle, rgba(14,165,233,.10), transparent 70%);
    animation: pulseGlow 7s ease-in-out infinite;
}

.auth-topbar {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.96);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.025em;
    animation: slideDown .7s cubic-bezier(.2,.8,.2,1) both;
}

.brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.12),
        0 8px 28px rgba(37,99,235,.35);
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 12px;
    left: -50px;
    top: 4px;
    background: rgba(255,255,255,.38);
    transform: rotate(-25deg);
    animation: brandShine 4.5s ease-in-out infinite;
}

.brand-mark span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 16px rgba(255,255,255,.9);
}

.lp-lang-switch {
    position: relative;
    animation: slideDown .7s .08s cubic-bezier(.2,.8,.2,1) both;
}

.lp-lang-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 9px 13px;
    border-radius: 999px;
    font: 600 .78rem/1 inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.lp-lang-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.24);
}

.lp-lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    background: rgba(12, 24, 42, .94);
    box-shadow: 0 24px 60px rgba(0,0,0,.34);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.lp-lang-switch.open .lp-lang-menu {
    display: block;
    animation: menuIn .18s ease-out both;
}

.lp-lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    color: rgba(255,255,255,.76);
    text-decoration: none;
    font-size: .8rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.lp-lang-menu a:hover,
.lp-lang-menu a.active {
    color: #fff;
    background: rgba(59,130,246,.17);
    transform: translateX(2px);
}

.auth-card-wrap {
    width: min(100%, 450px);
    perspective: 1200px;
    animation: cardEnter .9s cubic-bezier(.16,1,.3,1) both;
}

.auth-card {
    position: relative;
    width: 100%;
    padding: 42px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: var(--auth-radius);
    background:
        linear-gradient(145deg, rgba(255,255,255,.985), rgba(248,250,253,.94));
    box-shadow:
        0 35px 100px rgba(0,0,0,.34),
        0 12px 35px rgba(0,0,0,.15),
        inset 0 1px 0 rgba(255,255,255,1);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}

.auth-card::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -250px;
    right: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.13), transparent 70%);
    pointer-events: none;
}

.auth-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -55%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent,
        rgba(255,255,255,.55),
        transparent
    );
    transform: skewX(-16deg);
    animation: cardShine 7s ease-in-out infinite;
    pointer-events: none;
}

.auth-card-head {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}

.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    margin-bottom: 19px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.10);
    animation: livePulse 2s ease-in-out infinite;
}

.auth-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2rem);
    line-height: 1.13;
    letter-spacing: -.045em;
    font-weight: 800;
    color: #0b1220;
}

.auth-subtitle {
    margin: 9px 0 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.6;
}

.alert-error {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 13px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fff7f7;
    color: #991b1b;
    font-size: .82rem;
    line-height: 1.45;
    animation: errorShake .45s ease both;
}

.alert-error svg { flex: 0 0 auto; margin-top: 1px; }

.form-group {
    position: relative;
    z-index: 2;
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin: 0 0 7px 2px;
    color: #334155;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .005em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    transition: color .25s ease, transform .25s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--auth-primary);
    transform: translateY(-50%) scale(1.08);
}

.form-control {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 51px;
    padding: 13px 45px 13px 46px;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    outline: none;
    background: rgba(255,255,255,.88);
    color: #0f172a;
    font: 500 .9rem/1.2 inherit;
    box-shadow: 0 2px 5px rgba(15,23,42,.025);
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease,
        background .25s ease;
}

.form-control:hover {
    border-color: #b9c7d9;
}

.form-control:focus {
    border-color: #60a5fa;
    background: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(37,99,235,.09),
        0 8px 25px rgba(37,99,235,.07);
}

.form-control::placeholder {
    color: #a1acba;
}

.toggle-password {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.toggle-password:hover {
    color: #334155;
    background: #f1f5f9;
    transform: translateY(-50%) scale(1.04);
}

.btn-primary {
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: 100%;
    min-height: 53px;
    margin-top: 5px;
    border: 0;
    border-radius: 13px;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    font: 700 .9rem/1 inherit;
    letter-spacing: -.005em;
    background: linear-gradient(105deg, #2563eb 0%, #4f46e5 48%, #7c3aed 100%);
    box-shadow:
        0 10px 25px rgba(37,99,235,.25),
        inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.btn-primary::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(105deg, #3b82f6, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity .3s ease;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    animation: buttonShine 4s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 34px rgba(37,99,235,.34),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active {
    transform: translateY(0) scale(.992);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(96,165,250,.45);
    outline-offset: 3px;
}

.trust-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
}

.trust-row svg { color: #16a34a; }

.auth-footer-link {
    position: relative;
    z-index: 2;
    margin-top: 23px;
    padding-top: 21px;
    border-top: 1px solid #edf1f5;
    text-align: center;
    color: #64748b;
    font-size: .79rem;
    line-height: 1.6;
}

.auth-footer-link a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease;
}

.auth-footer-link a:hover {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.back-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.back-link:hover {
    color: #475569;
    transform: translateX(-3px);
}

.auth-bottom {
    position: absolute;
    bottom: 17px;
    left: 20px;
    right: 20px;
    text-align: center;
    color: rgba(255,255,255,.34);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .02em;
    animation: fadeUp .9s .35s ease both;
}

@keyframes ambientRotate {
    to { transform: rotate(360deg); }
}

@keyframes floatA {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(45px,35px,0) scale(1.08); }
}

@keyframes floatB {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-35px,-45px,0) scale(1.06); }
}

@keyframes pulseGlow {
    0%,100% { opacity: .5; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.965) rotateX(2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-5px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes livePulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.10); }
    50% { box-shadow: 0 0 0 7px rgba(34,197,94,.02); }
}

@keyframes brandShine {
    0%,55%,100% { left: -60px; opacity: 0; }
    65% { left: 55px; opacity: 1; }
    78% { left: 80px; opacity: 0; }
}

@keyframes cardShine {
    0%,65%,100% { left: -60%; opacity: 0; }
    72% { opacity: 1; }
    86% { left: 125%; opacity: 0; }
}

@keyframes buttonShine {
    0%,45%,100% { left: -70%; opacity: 0; }
    52% { opacity: 1; }
    67% { left: 125%; opacity: 0; }
}

@keyframes errorShake {
    0% { opacity: 0; transform: translateY(-5px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(1px); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (hover: hover) and (pointer: fine) {
    .auth-card-wrap:hover .auth-card {
        box-shadow:
            0 42px 115px rgba(0,0,0,.38),
            0 15px 40px rgba(0,0,0,.17),
            inset 0 1px 0 rgba(255,255,255,1);
    }
}

@media (max-width: 600px) {
    .auth-page {
        padding: 76px 14px 55px;
        align-items: center;
    }

    .auth-topbar {
        top: 14px;
        left: 14px;
        right: 14px;
    }

    .brand span:last-child {
        display: none;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .auth-card {
        padding: 30px 22px 24px;
        border-radius: 21px;
        box-shadow:
            0 25px 70px rgba(0,0,0,.31),
            0 10px 25px rgba(0,0,0,.13);
    }

    .auth-card-head {
        margin-bottom: 24px;
    }

    .auth-title {
        font-size: 1.7rem;
    }

    .auth-subtitle {
        font-size: .84rem;
    }

    .ambient-a {
        width: 330px;
        height: 330px;
    }

    .ambient-b {
        width: 350px;
        height: 350px;
    }

    .auth-bottom {
        bottom: 10px;
    }
}

@media (max-width: 360px) {
    .auth-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-card {
        padding: 26px 18px 21px;
    }

    .auth-title {
        font-size: 1.55rem;
    }

    .secure-pill {
        font-size: .68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Registrierung ---------- */
.auth-card-head,
.auth-form,
.auth-footer {
    position: relative;
    z-index: 2;
}
.trial-highlight {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 19px 0 22px;
    padding: 12px 13px;
    border: 1px solid #d9e7ff;
    border-radius: 13px;
    background: linear-gradient(135deg, #f3f8ff, #f8f7ff);
    color: #334155;
    font-size: .76rem;
    line-height: 1.45;
}
.trial-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 7px 16px rgba(37,99,235,.20);
}
.form-hint {
    margin: 6px 2px 0;
    color: #7b8797;
    font-size: .68rem;
    line-height: 1.45;
}
.captcha-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
    align-items: end;
}
.captcha-box {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(37,99,235,.06), rgba(124,58,237,.06));
    color: #1e3a8a;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .04em;
    user-select: none;
}
.captcha-answer {
    max-width: none !important;
}
.auth-footer {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf1f5;
    text-align: center;
}
.auth-footer-main {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.55;
}
.auth-footer-main a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease;
}
.auth-footer-main a:hover {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .trial-highlight {
        margin-top: 16px;
        margin-bottom: 19px;
    }
  .captcha-wrap {
        grid-template-columns: 1fr 108px;
        gap: 9px;
    }
}
@media (max-width: 370px) {
  .trial-highlight {
        font-size: .7rem;
    }
  .captcha-wrap {
        grid-template-columns: 1fr 96px;
    }
}

/* ---------- Ein Fenster, zwei Modi ---------- */
.auth-card-wrap { width: min(100%, 480px); }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 22px;
  background: rgba(15, 23, 42, .06); border-radius: 12px;
}
.auth-tab {
  height: 40px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: #64748b; transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab:hover { color: #0f172a; }
.auth-tab[aria-selected="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .06); }
.auth-tab:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.auth-panel[hidden] { display: none !important; }
.auth-panel { animation: authPanelIn .22s ease; }
@keyframes authPanelIn { from { opacity: 0; } to { opacity: 1; } }
.auth-switch { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #2563eb; cursor: pointer; }
.auth-switch:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .auth-panel { animation: none; } }

/* BUGFIX Login-Symbole: Die allgemeine Regel input[type="text"] aus base.css
   (Spezifität 0,1,1) war stärker als .form-control (0,1,0) und setzte den für
   das Symbol reservierten Innenabstand auf 12px zurück -> das Symbol lag über
   dem eingetippten Text. Mit .input-wrapper > .form-control (0,2,0) gilt der
   reservierte Platz jetzt IMMER; Symbol und Auge sitzen im freien Bereich. */
/* !important bewusst: der reservierte Platz für Symbol/Auge darf von KEINER
   anderen Regel (base.css, Browser-/Autofill-Styles) überschrieben werden. */
.input-wrapper > .form-control { padding-left: 46px !important; padding-right: 16px !important; }
.input-wrapper > .form-control[type="password"] { padding-right: 50px !important; }
.input-wrapper .input-icon { z-index: 3; }
.input-wrapper .toggle-password { z-index: 3; }

/* BUGFIX: Die Login-/Registrierungskarte ist IMMER hell gestaltet. Mit dem
   Plattform-Design "Dark" setzten die Theme-Regeln für Eingabefelder helle
   Schrift (und teils dunklen Hintergrund) -> Anmeldefeld weiss auf weiss,
   unlesbar. Die Karte erzwingt daher ihr eigenes, helles Farbschema. */
.auth-card { color-scheme: light; }
.auth-card .form-control,
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] {
  background-color: #ffffff; color: #0f172a;
}
.auth-card .form-control::placeholder { color: #94a3b8; }
.auth-card .form-control:-webkit-autofill { -webkit-text-fill-color: #0f172a; box-shadow: 0 0 0 1000px #ffffff inset; }
