/* ────────────────────────────────────────────────────────────
   NEXORA — AUTH (Login / Register) STYLES
   Split-Screen: Form-Card links, Hero/Slogan rechts
   ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --nx-primary:        #185FA5;
    --nx-primary-dark:   #0C447C;
    --nx-primary-darker: #042C53;
    --nx-bg-soft:        #F5FAFE;
    --nx-bg-softer:      #E6F1FB;
    --nx-text:           #0F172A;
    --nx-text-muted:     #64748B;
    --nx-border:         #E2E8F0;
    --nx-danger:         #DC2626;
    --nx-success:        #059669;
}

html, body { height: 100%; }

body.auth-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--nx-bg-soft);
    color: var(--nx-text);
    -webkit-font-smoothing: antialiased;
}

/* ── Split-Container: 50/50 auf Desktop, gestackt auf Mobile ── */
.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Linke Hälfte: enthält die Card */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--nx-bg-soft);
}

/* ── Form-Card ── */
.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(12, 68, 124, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: cardIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

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

/* ── Brand ── */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.brand-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--nx-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}
.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--nx-text);
}

/* ── Headline ── */
.auth-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
    color: var(--nx-text);
}
.auth-sub {
    margin: 0;
    font-size: 13px;
    color: var(--nx-text-muted);
}

/* ── Felder ── */
.auth-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-label > span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nx-text-muted);
    font-weight: 500;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--nx-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--nx-text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card input:focus {
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

/* ── Row für Checkbox + Link ── */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 2px;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--nx-text-muted);
    cursor: pointer;
}
.checkbox input { margin: 0; }
.auth-terms {
    font-size: 12px;
    line-height: 1.5;
    align-items: flex-start;
}
.auth-terms input { margin-top: 3px; }

/* ── Links ── */
.link {
    color: var(--nx-primary);
    text-decoration: none;
    font-weight: 500;
}
.link:hover { text-decoration: underline; }
.link.small { font-size: 12px; font-weight: 400; }

/* ── Primary Button ── */
.btn-primary {
    height: 42px;
    border: none;
    border-radius: 999px;
    background: var(--nx-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(24, 95, 165, 0.25);
}
.btn-primary:hover  { background: var(--nx-primary-dark); }
.btn-primary:active { transform: scale(0.98); }

/* ── Hints (von login.js gesteuert) ── */
.error-hint,
.success-hint {
    display: none;
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
}
.error-hint   { background: #FEE2E2; color: var(--nx-danger);  }
.success-hint { background: #D1FAE5; color: var(--nx-success); }

/* ════════════════════════════════════════════════════════════
   RECHTE SEITE: Hero / Slogan
   ════════════════════════════════════════════════════════════ */
.auth-hero {
    background: var(--nx-primary-dark);
    color: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    pointer-events: none;
}
.hero-shape-1 {
    top: -40px; right: -40px;
    width: 260px; height: 260px;
    opacity: 0.15;
}
.hero-shape-2 {
    bottom: -60px; left: -50px;
    width: 280px; height: 280px;
    opacity: 0.10;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
}
.hero-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 12px;
}
.hero-title {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
    margin: 0 0 16px;
}
.hero-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}
.hero-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE: unter 900px stapeln, Hero kleiner
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-hero  { padding: 32px; min-height: 240px; }
    .hero-title { font-size: 26px; }
}
@media (max-width: 900px) {
    /* Hero auf Mobile nach unten */
    .auth-form-side { order: 2; }
    .auth-hero      { order: 1; }
}
