/* Datei: /public/css/auth.css */
/* 1:1 aus SCCs login.css portiert, nur --dst- zu --ct- und scc- zu ct- umbenannt.
   Setzt theme.css (--ct-* Tokens) voraus. */

html, body { height: 100%; }

body.ct-login-body {
    margin: 0;
    min-height: 100vh;
    background: var(--ct-bg);
    color: var(--ct-text);
    font-family: var(--ct-font);
    overflow-x: hidden;
}

.ct-login-scene {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 216, 11, 0.16), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(56, 189, 248, 0.12), transparent 50%),
        var(--ct-bg-soft);
}

.ct-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---------- Linke Seite: Showcase-Inhalt ---------- */

.ct-login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
}

.ct-aurora {
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 38% at 25% 30%, rgba(168, 216, 11, 0.28), transparent 70%),
        radial-gradient(32% 32% at 75% 65%, rgba(56, 189, 248, 0.20), transparent 70%),
        radial-gradient(28% 28% at 55% 85%, rgba(168, 216, 11, 0.14), transparent 70%);
    filter: blur(40px);
    animation: ctAuroraDrift 18s ease-in-out infinite alternate;
}

@keyframes ctAuroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(3%, -4%, 0) scale(1.08); }
    100% { transform: translate3d(-3%, 3%, 0) scale(1); }
}

.ct-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 40%, black 10%, transparent 75%);
    animation: ctGridPan 40s linear infinite;
}

@keyframes ctGridPan {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 420px 0, 0 420px; }
}

.ct-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.ct-particle {
    position: absolute;
    bottom: -10px;
    width: var(--size, 4px);
    height: var(--size, 4px);
    border-radius: 50%;
    background: var(--ct-primary);
    opacity: 0;
    box-shadow: 0 0 8px 1px rgba(168, 216, 11, 0.6);
    animation: ctFloatUp var(--dur, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
    left: var(--x, 50%);
}

.ct-particle.is-cyan {
    background: var(--ct-info);
    box-shadow: 0 0 8px 1px rgba(56, 189, 248, 0.55);
}

@keyframes ctFloatUp {
    0%   { opacity: 0; transform: translateY(0) translateX(0); }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-100vh) translateX(24px); }
}

.ct-showcase-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }

.ct-showcase-top .ct-brand-icon {
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
}

.ct-showcase-top strong { display: block; font-size: 20px; line-height: 1.1; letter-spacing: 0.3px; }
.ct-showcase-top span { display: block; color: var(--ct-text-muted); font-size: 12.5px; }

.ct-showcase-mid { position: relative; z-index: 1; max-width: 480px; }

.ct-live-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--ct-info); font-size: 12px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 22px;
}

.ct-live-pill .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--ct-info);
    animation: ctPulseDot 1.6s ease-out infinite;
}

@keyframes ctPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.ct-showcase-mid h1 { font-size: 30px; line-height: 1.25; font-weight: 700; margin: 0 0 14px; }
.ct-showcase-mid h1 span { color: var(--ct-primary); }
.ct-showcase-mid p { color: var(--ct-text-muted); font-size: 15px; line-height: 1.6; margin: 0; }

.ct-module-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.ct-module-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: var(--ct-radius-md);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ct-border-soft);
    color: var(--ct-text-muted); font-size: 13px;
    backdrop-filter: blur(6px);
    animation: ctChipFloat 6s ease-in-out infinite;
}

.ct-module-chip i { color: var(--ct-primary); }
.ct-module-chip:nth-child(2) { animation-delay: 0.4s; }
.ct-module-chip:nth-child(3) { animation-delay: 0.8s; }

@keyframes ctChipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}


/* ---------- Rechte Seite: Login-Karte ---------- */

.ct-login-panel { display: flex; align-items: center; justify-content: center; padding: 32px; background: transparent; position: relative; }

.ct-login-card {
    width: 100%; max-width: 400px;
    padding: 36px 34px 30px;
    border-radius: var(--ct-radius-lg);
    background: linear-gradient(165deg, rgba(30, 30, 37, 0.9), rgba(20, 20, 25, 0.92));
    border: 1px solid var(--ct-border-soft);
    box-shadow: var(--ct-shadow), 0 0 60px rgba(168, 216, 11, 0.06);
    backdrop-filter: blur(16px);
    animation: ctCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ctCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ct-login-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--ct-badge-bg); color: var(--ct-text-muted);
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
    margin-bottom: 18px;
}

.ct-login-badge i { color: var(--ct-primary); }

.ct-login-card h1 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.ct-login-card > p.ct-login-lead { color: var(--ct-text-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }

.ct-login-providers { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.ct-provider-btn {
    position: relative; display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px 18px; border-radius: var(--ct-radius-md);
    background: var(--ct-primary); color: var(--ct-black);
    font-weight: 600; font-size: 15px; text-decoration: none; border: 0;
    overflow: hidden; isolation: isolate;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ct-provider-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168, 216, 11, 0.35); }
.ct-provider-btn:active { transform: translateY(0); }

.ct-provider-btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
}
.ct-provider-btn:hover::after { animation: ctShine 0.9s ease forwards; }
@keyframes ctShine { to { transform: translateX(120%); } }

.ct-provider-btn .ct-provider-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(0, 0, 0, 0.15); font-size: 16px;
}

.ct-provider-btn .ct-provider-text { display: flex; flex-direction: column; line-height: 1.2; }
.ct-provider-btn .ct-provider-text small { font-weight: 400; font-size: 11.5px; opacity: 0.75; }

.ct-provider-btn .ct-provider-arrow { margin-left: auto; opacity: 0.6; transition: transform 0.15s ease; }
.ct-provider-btn:hover .ct-provider-arrow { transform: translateX(3px); }

.ct-provider-soon {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px 18px; border-radius: var(--ct-radius-md);
    background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--ct-border);
    color: var(--ct-text-muted); font-size: 13.5px;
}

.ct-provider-soon .ct-provider-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 7px;
    background: rgba(255, 255, 255, 0.04); font-size: 14px;
}

.ct-provider-soon span.tag {
    margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 3px 8px; border-radius: 999px; background: var(--ct-badge-bg);
}

.ct-login-footnote {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ct-border-soft);
    color: var(--ct-text-muted); font-size: 12.5px; line-height: 1.5;
}
.ct-login-footnote i { color: var(--ct-primary); margin-right: 4px; }



/* ---------- Preis-Übersicht unterhalb des Login-Shells ---------- */

.ct-plans { max-width: 960px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.ct-plans h2 { font-size: 26px; }
.ct-plans > p.text-muted { max-width: 480px; margin-left: auto; margin-right: auto; }

.ct-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; text-align: left; }

.ct-plan-card {
    position: relative;
    background: var(--ct-bg-card); border: 1px solid var(--ct-border-soft);
    border-radius: var(--ct-radius-lg); padding: 26px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.ct-plan-card:hover { transform: translateY(-3px); border-color: var(--ct-border); }
.ct-plan-card.is-highlight { border-color: rgba(168, 216, 11, 0.45); box-shadow: 0 0 0 1px rgba(168, 216, 11, 0.12), 0 12px 30px rgba(168, 216, 11, 0.08); }

.ct-plan-icon {
    width: 40px; height: 40px; border-radius: var(--ct-radius-md);
    background: rgba(168, 216, 11, 0.12); color: var(--ct-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 14px;
}

.ct-plan-badge {
    position: absolute; top: -11px; right: 20px;
    background: var(--ct-primary); color: var(--ct-black);
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 3px 10px; border-radius: 999px;
}

.ct-plan-card h3 { margin: 0 0 3px; font-size: 19px; }
.ct-plan-tagline { color: var(--ct-text-muted); font-size: 13px; margin: 0 0 14px; }
.ct-plan-price { color: var(--ct-primary); font-weight: 600; font-size: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ct-border-soft); }
.ct-plan-card ul { list-style: none; margin: 0; padding: 0; }
.ct-plan-card li { color: var(--ct-text-muted); font-size: 13.5px; padding: 5px 0; }
.ct-plan-card li::before { content: "✓ "; color: var(--ct-primary); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .ct-login-shell { grid-template-columns: 1fr; }
    .ct-login-showcase { display: none; }
    .ct-login-panel { padding: 24px 18px; min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-aurora, .ct-grid-overlay, .ct-particle, .ct-module-chip,
    .ct-live-pill .dot, .ct-login-card, .ct-provider-btn::after {
        animation: none !important;
    }
}