:root {
    --bg-1: #1e2228;
    --bg-2: #2d333b;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-border: rgba(255, 255, 255, 0.16);
    --text-main: #f4f4f4;
    --text-soft: #d3d6da;
    --text-muted: #a9afb7;
    --orange: #ff6a00;
    --orange-dark: #dc5600;
    --green: #2ecb70;
    --red: #d85a4b;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 24%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18)),
        #2d333b;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px; /* enger */
}

.auth-stage {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===== LOGO FIX ===== */
.logo-crop {
    width: 280px;
    height: 170px; /* etwas reduziert */
    overflow: hidden;
    display: flex;
    align-items: flex-start; /* wichtig → unten wird abgeschnitten */
    justify-content: center;
    margin-bottom: -6px; /* näher an Branding */
}

.hero-logo {
    width: 255px;
    height: auto;
    display: block;
    transform: translateY(-10px); /* präzises Cropping */
}

/* ===== BRAND ===== */
.brand-lockup {
    line-height: 0.92;
    font-size: 102px;
    font-weight: 800;
    letter-spacing: -3px;
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 4px;
}

.brand-kd {
    color: #ffffff;
}

.brand-sm {
    color: var(--orange);
}

.brand-copy {
    color: var(--text-main);
    font-size: 18px; /* kleiner */
    line-height: 1;
    margin-left: 4px;
    margin-bottom: 12px;
}

/* ===== TEXT ===== */
.brand-subtitle {
    font-size: 27px;
    color: var(--text-main);
    margin-bottom: 6px; /* enger */
}

.brand-project {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px; /* enger zur Box */
}

/* ===== CARD ===== */
.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 22px 22px 20px;
    text-align: left;
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.card-header h1,
.auth-card-logout h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.source-badge {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.status-live {
    color: var(--green);
}

.status-offline {
    color: var(--red);
}

/* Error */
.form-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(216, 90, 75, 0.14);
    border: 1px solid rgba(216, 90, 75, 0.45);
    color: #ffd7d1;
    font-size: 14px;
}

/* Inputs */
.field-group {
    margin-bottom: 14px;
}

.field-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-soft);
}

.field-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 17px;
    outline: none;
}

.field-group input:focus {
    border-color: rgba(255, 106, 0, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

/* Button */
.primary-btn,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff7818 0%, var(--orange) 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 106, 0, 0.28);
}

/* Logout */
.auth-card-logout {
    text-align: center;
    max-width: 560px;
}

.logout-check {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 5px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}

/* Responsive */
@media (max-width: 640px) {
    .logo-crop {
        height: 170px;
    }

    .hero-logo {
        width: 215px;
    }

    .brand-lockup {
        font-size: 82px;
    }
}