/**
 * Format Teambox - Modern Split-Screen Landing & Auth Stylesheet
 * 100% Natives CSS, Zero-Dependencies, Dark-First Design
 */

:root {
    --landing-bg-outer: #080d12;
    --landing-card-border: rgba(255, 255, 255, 0.08);

    /* Linke Spalte (Emerald / Teal) */
    --panel-left-bg-start: #06372b;
    --panel-left-bg-end: #04211a;
    --color-emerald-accent: #34d399;
    --color-emerald-glow: rgba(16, 185, 129, 0.18);

    /* Rechte Spalte (Slate / Charcoal) */
    --panel-right-bg: #0e151a;
    --panel-right-surface: #141c22;
    --panel-input-bg: #141c22;
    --panel-input-border: #22303c;
    --panel-input-focus: #10b981;

    --btn-primary-bg: #2dd4bf;
    --btn-primary-hover: #14b8a6;
    --btn-primary-text: #042017;
}

body.landing-body {
    background-color: var(--landing-bg-outer);
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.landing-viewport {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Geteilte Karte */
.split-card {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--panel-right-bg);
    border: 1px solid var(--landing-card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 100px -20px rgba(16, 185, 129, 0.08);
}

@media (min-width: 900px) {
    .split-card {
        grid-template-columns: 1.15fr 0.85fr;
        min-height: 680px;
    }
}

/* ==========================================================================
   LINKE SPALTE: INTRO & FEATURES (Grün)
   ========================================================================== */
.panel-intro {
    background: radial-gradient(circle at 20% 20%, #084838 0%, var(--panel-left-bg-start) 45%, var(--panel-left-bg-end) 100%);
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid var(--landing-card-border);
}

.intro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
}

.pulse-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-accent);
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-emerald-accent);
    margin-bottom: 1.25rem;
}

.pill-dot {
    font-size: 0.6rem;
}

.hero-headline {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 1.85rem;
    }
    .panel-intro {
        padding: 1.75rem;
    }
}

.hero-subheadline {
    color: rgba(241, 245, 249, 0.78);
    font-size: 0.975rem;
    line-height: 1.55;
    margin-bottom: 2.25rem;
    max-width: 520px;
}

/* Feature Stack */
.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-accent);
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
}

.feature-desc {
    font-size: 0.8125rem;
    color: rgba(241, 245, 249, 0.65);
}

.feature-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-emerald-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.intro-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: rgba(241, 245, 249, 0.55);
}

/* ==========================================================================
   RECHTE SPALTE: AUTH / LOGIN
   ========================================================================== */
.panel-auth {
    background-color: var(--panel-right-bg);
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 640px) {
    .panel-auth {
        padding: 2rem 1.5rem;
    }
}

.auth-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.auth-kicker {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.auth-form-wrap {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

.auth-logo-center {
    margin-bottom: 1rem;
}

.brand-wordmark {
    font-size: 2.85rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #ffffff;
    display: inline-block;
    line-height: 1;
}

.brand-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.auth-badge-kicker {
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-emerald-accent);
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Form Controls */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-input {
    width: 100%;
    background-color: var(--panel-input-bg);
    border: 1px solid var(--panel-input-border);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    color: #ffffff;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--panel-input-focus);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-input::placeholder {
    color: #475569;
}

.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrap .form-input {
    padding-right: 2.75rem;
}

.btn-toggle-eye {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    min-height: 36px;
    min-width: 36px;
}

.btn-toggle-eye:hover {
    color: #cbd5e1;
}

/* Checkbox */
.form-options {
    display: flex;
    align-items: center;
    margin: 0.2rem 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--panel-input-border);
    background-color: var(--panel-input-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkbox-box {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}

.custom-checkbox input:checked + .checkbox-box::after {
    content: "✓";
    font-size: 0.75rem;
    color: var(--btn-primary-text);
    font-weight: 800;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
    min-height: 48px;
}

.btn-submit:hover {
    background-color: var(--btn-primary-hover);
}

.btn-submit:active {
    transform: scale(0.99);
}

.btn-arrow {
    font-size: 1.15rem;
    line-height: 1;
}

/* Help & Footer */
.auth-help {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
}

.help-question {
    color: #cbd5e1;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.help-answer {
    color: #64748b;
    margin: 0;
}

.auth-bottom-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 2rem;
}
