/*
 * Udos-Country-Western-Radio Chat
 * Idee & Entwicklung: Udos-Country-Western-Radio & Udos-Country-Western-Radio
 * Kontakt: info@udos-country-western-radio.de | www.Udos-Country-Western-Radio.de
 */

:root {
    --bg: #1b120d;
    --line: rgba(255, 255, 255, 0.12);
    --text: #fff2d8;
    --muted: rgba(228, 234, 255, 0.72);
    --pink: #c56b52;
    --purple: #d49a45;
    --blue: #6da7a0;
    --shadow: 0 28px 70px rgba(1, 4, 12, 0.56);
    --radius: 24px;
    --page-width: 1220px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; height: 100%; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

body.login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 18%, rgba(197, 107, 82, 0.24), transparent 26rem),
        radial-gradient(circle at 80% 10%, rgba(109, 167, 160, 0.18), transparent 28rem),
        linear-gradient(180deg, rgba(3, 6, 18, 0.72), rgba(3, 6, 18, 0.95)),
        url('../images/bilder/background.png') center / cover no-repeat fixed,
        var(--bg);
    overflow-x: hidden;
    overflow-y: auto;
}

body.login-page .primary-button,
body.login-page .tab-btn.active {
    background: linear-gradient(135deg, var(--site-theme-color, #a9652f), color-mix(in srgb, var(--site-theme-color, #a9652f) 62%, #d49a45)) !important;
}

.maintenance-notice {
    display: grid;
    gap: 4px;
    margin: 14px 18px 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 211, 109, .38);
    border-radius: 10px;
    background: rgba(255, 211, 109, .1);
    color: #ffe6a1;
}

.maintenance-notice strong { color: #ffd36d; }
.maintenance-notice span { font-size: .82rem; line-height: 1.4; }

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at center, #000, transparent 76%);
    mask-image: radial-gradient(circle at center, #000, transparent 76%);
    opacity: 0.38;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(var(--page-width), calc(100vw - 24px));
    min-height: 100svh;
    margin: 0 auto;
    padding: 6px 0 58px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
    overflow: visible;
    animation: pageReveal 0.55s ease-out both;
}

.glass-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 20, 37, 0.8), rgba(10, 14, 28, 0.84));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(197, 107, 82, 0.7), rgba(109, 167, 160, 0.28), rgba(109, 167, 160, 0.46));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    min-height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(7, 10, 22, 0.62);
    margin-top: 0;
}

.promo-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 4px 10px;
    filter: saturate(1.08) contrast(1.04);
}

.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.05), rgba(5, 8, 18, 0.2));
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 8px;
    min-height: 0;
    height: auto;
    align-items: start;
}

.side-panel,
.login-layout {
    min-height: 0;
    height: auto;
}

.side-panel {
    grid-column: 2;
    grid-row: 1;
    padding: 12px 12px 10px;
    background: rgba(9, 12, 27, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.side-panel h2 {
    margin: 0 0 12px;
    color: #eaaef7;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rules;
    display: grid;
    gap: 7px;
}

.rule-list li {
    counter-increment: rules;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 7px;
    align-items: start;
    color: rgba(255,255,255,0.8);
    line-height: 1.35;
    font-size: 0.76rem;
}

.rule-list li::before {
    content: counter(rules, decimal-leading-zero);
    display: grid;
    place-items: center;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(197, 107, 82,0.78), rgba(141,91,255,0.68));
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
}

.login-layout {
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-height: 0;
    height: 100%;
}

.auth-card {
    width: 100%;
    min-height: 380px;
    height: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 26px;
    box-shadow: 0 22px 54px rgba(2, 4, 12, 0.45);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: rgba(16, 22, 40, 0.7);
    border-radius: 26px 26px 0 0;
    overflow: hidden;
}

.tab-btn {
    min-height: 46px;
    border: 0;
    padding: 0 12px;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab-btn.active {
    color: var(--text);
    background: linear-gradient(180deg, rgba(197, 107, 82, 0.18), rgba(212, 154, 69, 0.12));
    box-shadow: inset 0 -2px 0 rgba(197, 107, 82, 0.9), 0 0 0 1px rgba(197, 107, 82, 0.18);
}

.alert {
    margin: 8px 12px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(31, 201, 110, 0.12);
    color: #9ef0b5;
    border: 1px solid rgba(31, 201, 110, 0.26);
    font-size: 0.74rem;
    text-align: center;
}

.auth-panels {
    position: relative;
    min-height: 0;
    height: auto;
    overflow: visible;
}

.auth-panel {
    position: relative;
    display: none;
    height: auto;
    min-height: 0;
    padding: 10px 12px 12px;
    animation: fadeIn 0.2s ease;
    overflow: visible;
}

.auth-panel.active { animation: panelReveal 0.24s ease-out both; }

.auth-panel.active {
    display: flex;
    flex-direction: column;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.panel-title.centered { display: block; text-align: center; }

.panel-title > span,
.guest-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(197, 107, 82, 0.2), rgba(212, 154, 69, 0.14));
    font-size: 1.1rem;
}

.guest-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    font-size: 1.6rem;
    border-radius: 14px;
}

.panel-title h2 {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.2;
}

.panel-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.74rem;
}

form {
    display: grid;
    gap: 6px;
}

form label:not(.rules-accept):not(.mini-check):not(.gender-group label) {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input:not([type]) {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(4, 9, 18, 0.82);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(255,255,255,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder {
    color: rgba(255,255,255,0.35);
}

input:focus {
    border-color: rgba(197, 107, 82, 0.72);
    box-shadow: 0 0 0 4px rgba(197, 107, 82, 0.12), inset 0 1px 0 rgba(255,255,255,0.04);
    background: rgba(7, 12, 22, 0.94);
}

.form-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.76rem;
}

.split-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.split-form-row label {
    min-width: 0;
}

.mini-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.2;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--pink);
    transform: translateY(-1px);
}

.gender-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.gender-group label {
    position: relative;
    display: block;
    cursor: pointer;
}

.gender-group input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.gender-group span {
    min-height: 34px;
    display: grid;
    place-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.8);
    font-size: 0.72rem;
    font-weight: 800;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.gender-group input:checked + span {
    color: var(--text);
    border-color: rgba(197, 107, 82, 0.7);
    background: linear-gradient(135deg, rgba(197, 107, 82, 0.14), rgba(212, 154, 69, 0.12));
    box-shadow: 0 0 0 1px rgba(197, 107, 82, 0.14), 0 10px 18px rgba(212, 154, 69, 0.12);
}

.gender-group label:hover span,
.gender-group input:focus-visible + span {
    transform: translateY(-2px);
    border-color: rgba(101, 231, 255, 0.48);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.rules-accept {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
    padding: 2px 0;
    margin-top: 2px;
}

.hint {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(109, 167, 160, 0.12);
    border: 1px solid rgba(109, 167, 160, 0.24);
    color: #dfeeff;
    font-size: 0.72rem;
}

.primary-button {
    position: relative;
    overflow: hidden;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #d49a45 0%, #d49a45 30%, #c56b52 100%);
    box-shadow: 0 10px 20px rgba(212, 154, 69, 0.24), 0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.2) 48%, transparent 66%);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.primary-button:hover::after { transform: translateX(130%); }

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 12px 24px rgba(212, 154, 69, 0.32), 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.18);
}

.forgot-password-wrap {
    position: relative;
    margin-top: 10px;
    z-index: 2;
    min-height: 28px;
}

.forgot-password-toggle {
    border: 0;
    background: transparent;
    color: #f29af7;
    padding: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.forgot-password-toggle.active {
    color: #ffd1f8;
}

.forgot-password-form {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    z-index: 10;
    display: grid;
    gap: 8px;
    padding: 12px 10px 10px;
    border-radius: 16px;
    background: rgba(9, 14, 27, 0.97);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 38px rgba(0,0,0,0.38);
    opacity: 0;
    transform: translateY(calc(100% + 18px));
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.forgot-password-form.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.forgot-password-close {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #c5c9dd;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.forgot-password-close:hover {
    border-color: rgba(255, 154, 247, .45);
    background: rgba(255, 154, 247, .12);
    color: #ffd1f8;
}

.feature-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 2px;
    min-height: 28px;
}

.feature-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-size: 0.7rem;
    font-weight: 700;
}

.fixed-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    background: rgba(5, 8, 18, 0.9);
    box-shadow: 0 -12px 30px rgba(2, 4, 12, 0.25);
    z-index: 50;
}

.footer-inner {
    width: min(var(--page-width), calc(100vw - 24px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copy {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-nav a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

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

@media (max-width: 760px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .login-layout,
    .side-panel {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }
    .login-layout { order: 1; }
    .side-panel { order: 2; }
}

@media (max-width: 760px) {
    body.login-page {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .page-shell {
        width: min(100vw - 12px, var(--page-width));
        padding-top: 6px;
        padding-bottom: 64px;
        gap: 6px;
    }
    .promo-banner {
        min-height: 150px;
        height: 150px;
    }
    .promo-banner img {
        min-height: 150px;
        padding: 2px 8px;
    }
    .auth-tabs { grid-template-columns: 1fr; }
    .gender-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .page-shell {
        width: min(100vw - 8px, var(--page-width));
    }
    .split-form-row,
    .gender-group { grid-template-columns: 1fr; }
    .form-line { flex-direction: column; align-items: flex-start; }
    .top-nav { gap: 6px; justify-content: flex-start; }
    .side-panel, .auth-panel { padding: 12px 10px; }
}

/* Modern form surface: keeps the existing PHP contract and tab behaviour intact. */
:root {
    --line: rgba(170, 207, 255, 0.16);
    --muted: rgba(218, 231, 255, 0.68);
    --cyan: #6da7a0;
    --cyan-soft: rgba(101, 231, 255, 0.14);
    --pink-soft: rgba(197, 107, 82, 0.16);
}

.page-shell {
    width: min(1160px, calc(100vw - 32px));
    padding-top: 18px;
    gap: 14px;
}

.glass-card,
.side-panel {
    border-radius: 18px;
    border-color: rgba(147, 197, 253, 0.2);
    background: linear-gradient(145deg, rgba(12, 22, 43, 0.88), rgba(7, 13, 28, 0.78));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.05);
}

.promo-banner {
    height: 142px;
    min-height: 142px;
    background: rgba(7, 13, 28, 0.72);
}

.promo-banner img { padding: 7px 18px; }

.content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 286px);
    gap: 14px;
    margin-top: 4px;
    align-items: stretch;
}

.auth-card {
    min-height: 0;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.login-layout { height: 100%; }

.auth-tabs {
    background: rgba(4, 11, 25, 0.52);
    border-bottom-color: rgba(147, 197, 253, 0.14);
}

.tab-btn {
    min-height: 52px;
    position: relative;
    color: rgba(220, 232, 255, 0.62);
    font-size: 0.86rem;
}

.tab-btn:hover { color: var(--text); background: rgba(101, 231, 255, 0.06); }

.tab-btn.active {
    background: linear-gradient(180deg, var(--pink-soft), rgba(101, 231, 255, 0.08));
    box-shadow: inset 0 -3px 0 var(--pink), 0 0 0 1px rgba(197, 107, 82, 0.12);
}

.auth-panel { padding: 24px 28px 26px; }

.guest-icon,
.panel-title > span {
    border-color: rgba(101, 231, 255, 0.28);
    background: linear-gradient(145deg, rgba(101, 231, 255, 0.16), rgba(197, 107, 82, 0.15));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.guest-icon { margin-bottom: 14px; }
.panel-title h2 { letter-spacing: -0.02em; }
.panel-title p { font-size: 0.8rem; }

form { gap: 12px; }

form label:not(.rules-accept):not(.mini-check):not(.gender-group label) {
    gap: 7px;
    color: rgba(218, 231, 255, 0.76);
    font-size: 0.76rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input:not([type]) {
    height: 48px;
    padding: 0 15px;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    border-radius: 10px;
    border-color: rgba(147, 197, 253, 0.18);
    background: rgba(2, 8, 20, 0.74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.12);
}

input:hover { border-color: rgba(101, 231, 255, 0.38); }

input::placeholder { font-size: 0.92rem; }

input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px var(--cyan-soft), inset 0 1px 0 rgba(255,255,255,0.07);
    animation: inputFocus 0.28s ease-out both;
}

.gender-group {
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.gender-group span {
    min-height: 58px;
    gap: 5px;
    border-radius: 12px;
    border-color: rgba(147, 197, 253, 0.16);
    background: rgba(255,255,255,0.035);
    color: rgba(235, 242, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.gender-group label:hover span { border-color: rgba(101, 231, 255, 0.42); }
.gender-group input:checked + span {
    border-color: var(--cyan);
    background: linear-gradient(145deg, rgba(101, 231, 255, 0.16), rgba(197, 107, 82, 0.14));
    box-shadow: 0 0 0 3px rgba(101, 231, 255, 0.08), 0 10px 22px rgba(0,0,0,0.2);
}

.gender-icon {
    display: block;
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
}

.gender-label { font-size: 0.72rem; font-weight: 800; }
.gender-group input:checked + span .gender-icon { color: #fff; }

.rules-accept { margin-top: 2px; }
.hint { border-radius: 10px; background: rgba(101, 231, 255, 0.08); border-color: rgba(101, 231, 255, 0.2); }
.primary-button { min-height: 48px; border-radius: 10px; }

.side-panel {
    height: 100%;
    padding: 18px 16px 16px;
}
.side-panel h2 { margin-bottom: 16px; color: var(--cyan); }
.rule-list { gap: 10px; }
.rule-list li { grid-template-columns: 24px 1fr; gap: 9px; line-height: 1.4; font-size: 0.78rem; }
.rule-list li::before { height: 22px; background: linear-gradient(145deg, rgba(101, 231, 255, 0.72), rgba(212, 154, 69, 0.78)); }

.feature-row { gap: 8px; padding-bottom: 4px; }
.feature-row span { padding: 8px 12px; border-color: rgba(147, 197, 253, 0.14); background: rgba(7, 16, 33, 0.56); }

@media (max-width: 760px) {
    .page-shell { width: min(100vw - 20px, var(--page-width)); padding-top: 10px; gap: 10px; }
    .promo-banner, .promo-banner img { min-height: 96px; height: 96px; }
    .promo-banner img { padding: 5px 10px; }
    .content-grid { grid-template-columns: 1fr; gap: 10px; }
    .login-layout,
    .auth-card,
    .side-panel { height: auto; }
    .auth-panel { padding: 20px 16px 18px; }
    .side-panel { padding: 16px 14px 14px; }
}

@media (max-width: 480px) {
    .page-shell { width: calc(100vw - 16px); }
    .auth-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tab-btn { min-height: 48px; padding: 0 6px; font-size: 0.75rem; }
    .gender-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gender-group span { min-height: 54px; }
    .feature-row span { font-size: 0.66rem; padding: 7px 9px; }
}

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

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

@keyframes inputFocus {
    from { transform: translateY(1px); }
    to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .page-shell,
    .auth-panel.active,
    input:focus { animation: none; }
    .primary-button::after,
    .gender-group span { transition: none; }
}

/* Letzter Override: aktives Preset und Headerbild sauber im Login darstellen. */


.promo-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 1;
    max-height: 230px;
}

.promo-banner img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 8px 18px !important;
}

.footer-copy a {
    color: inherit;
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--cyan, #6da7a0);
    text-decoration: underline;
}

.footer-copy small {
    margin-left: 6px;
    color: rgba(218, 231, 255, .48);
    font-size: .68rem;
    letter-spacing: .04em;
}

@media (max-width: 760px) {
    .promo-banner {
        aspect-ratio: 3 / 1;
        max-height: 170px;
    }

    .promo-banner img { padding: 5px 10px !important; }
}

/* Absolut letzter Override nach allen modern-entry-Regeln. */


.modern-entry-page .promo-banner,
.modern-entry-page .promo-banner img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.modern-entry-page .promo-banner {
    aspect-ratio: 5.4 / 1 !important;
    max-height: 230px !important;
    overflow: hidden !important;
}

.modern-entry-page .promo-banner img {
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
}

@media (max-width: 760px) {
    .modern-entry-page .promo-banner {
        aspect-ratio: 3 / 1 !important;
        max-height: 170px !important;
    }
}


/* =========================================================
    UDOS-COUNTRY-WESTERN-RADIO ENTRY PAGE – 3 COLUMN MODERN LAYOUT
   Links: Login/Registrierung Flip | Mitte: Regeln | Rechts: Gast
   ========================================================= */
.modern-entry-page {
    width: min(1420px, calc(100vw - 32px));
    padding-bottom: 86px;
}

.entry-alert {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(101, 231, 255, 0.28);
    background: rgba(8, 19, 39, 0.82);
    color: #e9f5ff;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.entry-error { border-color: rgba(255, 93, 125, .55); }
.entry-notice { border-color: rgba(87, 216, 158, .5); }

.entry-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(300px, .84fr) minmax(340px, 1fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.entry-column,
.rules-column {
    min-width: 0;
}

.entry-card-heading,
.rules-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.entry-card-heading h2,
.rules-heading h2 {
    margin: 0;
    color: #eef7ff;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.entry-card-heading p,
.rules-heading p {
    margin: 4px 0 0;
    color: rgba(219, 233, 255, .66);
    font-size: .82rem;
    line-height: 1.45;
}

.entry-card-icon,
.rules-heading > span,
.guest-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 1.5rem;
    background: linear-gradient(145deg, rgba(66, 167, 255, .22), rgba(255, 80, 200, .12));
    border: 1px solid rgba(126, 206, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 24px rgba(0, 0, 0, .18);
}

/* 3D Flip Box */
.flip-card {
    width: 100%;
    min-height: 520px;
    height: 100%;
    perspective: 1600px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .78s cubic-bezier(.2,.75,.2,1);
}

.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-face {
    position: absolute;
    inset: 0;
    min-height: 520px;
    padding: 26px;
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(1px);
    overflow-y: auto;
}

.flip-front { transform: rotateY(0deg) translateZ(1px); }
.flip-back { transform: rotateY(180deg) translateZ(1px); }

.auth-column .glass-card,
.rules-column,
.guest-card {
    border: 1px solid rgba(115, 190, 255, .26);
    background:
        linear-gradient(145deg, rgba(15, 28, 52, .92), rgba(6, 14, 29, .9));
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255,255,255,.055),
        0 0 0 1px rgba(83, 148, 255, .035);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
}

.compact-form {
    display: grid;
    gap: 12px;
}

.compact-form label {
    display: grid;
    gap: 7px;
    color: rgba(224, 237, 255, .78);
    font-size: .78rem;
    font-weight: 700;
}

.compact-form input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid rgba(120, 177, 255, .22);
    background: rgba(4, 12, 27, .7);
    color: #edf7ff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.compact-form input:focus {
    border-color: rgba(99, 204, 255, .82);
    background: rgba(7, 19, 39, .9);
    box-shadow: 0 0 0 3px rgba(66, 172, 255, .11);
}

.compact-form .mini-check,
.compact-form .rules-accept {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
}

.compact-form .primary-button {
    min-height: 46px;
    margin-top: 2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2978dc, #24aee9);
    box-shadow: 0 12px 24px rgba(29, 128, 230, .2);
}

.flip-switch {
    width: 100%;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid rgba(151, 199, 255, .16);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: rgba(229, 242, 255, .78);
    cursor: pointer;
    transition: .2s ease;
}
.flip-switch:hover {
    background: rgba(91, 170, 255, .1);
    border-color: rgba(102, 191, 255, .42);
    transform: translateY(-1px);
}

.forgot-password-toggle {
    width: 100%;
    margin-top: 12px;
}

.rules-column {
    padding: 24px;
    border-radius: 20px;
    min-height: 520px;
}

.rules-column .rule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rules;
    display: grid;
    gap: 7px;
}

.rules-column .rule-list li {
    counter-increment: rules;
    position: relative;
    min-height: 31px;
    padding: 7px 9px 7px 38px;
    border: 1px solid rgba(126, 181, 255, .1);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: rgba(229, 240, 255, .76);
    font-size: .74rem;
    line-height: 1.35;
}

.rules-column .rule-list li::before {
    content: counter(rules);
    position: absolute;
    left: 9px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(83, 166, 255, .95), rgba(86, 111, 225, .9));
    color: white;
    font-size: .63rem;
    font-weight: 800;
}

.guest-card {
    min-height: 520px;
    height: 100%;
    padding: 26px;
    border-radius: 20px;
}

.guest-card .guest-icon {
    margin: 0 auto 14px;
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
}

.entry-card-heading.centered {
    justify-content: center;
    text-align: center;
}

.guest-card .hint {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(71, 164, 255, .08);
    border: 1px solid rgba(95, 179, 255, .14);
    color: rgba(209, 231, 255, .68);
    font-size: .72rem;
    line-height: 1.4;
}

/* Desktop refinement */
@media (min-width: 1200px) {
    .entry-grid { grid-template-columns: minmax(350px, 1fr) minmax(310px, .82fr) minmax(350px, 1fr); }
}

/* Tablet: Regeln nach unten, Auth + Gast bleiben oben */
@media (max-width: 1100px) {
    .modern-entry-page { width: min(960px, calc(100vw - 24px)); }
    .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rules-column { grid-column: 1 / -1; min-height: 0; }
    .rules-column .rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: alles sauber untereinander, kein 3D-Flächenproblem */
@media (max-width: 760px) {
    .modern-entry-page { width: min(100% - 16px, 620px); padding-bottom: 78px; }
    .promo-banner { min-height: 0; height: auto; }
    .promo-banner img { min-height: 0; height: auto; }
    .entry-grid { grid-template-columns: 1fr; gap: 12px; }
    .rules-column { grid-column: auto; }
    .rules-column .rule-list { grid-template-columns: 1fr; }
    .flip-card,
    .flip-card-inner,
    .flip-face,
    .guest-card,
    .rules-column { min-height: 0; }
    .flip-card { min-height: 590px; }
    .flip-card-inner { min-height: 590px; }
    .flip-face { min-height: 590px; padding: 20px 16px; }
    .guest-card,
    .rules-column { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .flip-card { min-height: 640px; }
    .flip-card-inner { min-height: 640px; }
    .flip-face { min-height: 640px; }
    .split-form-row { grid-template-columns: 1fr; }
    .gender-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .flip-card-inner { transition-duration: .01ms; }
}



/* =========================================================
    UDOS-COUNTRY-WESTERN-RADIO – FINAL MODERN EQUAL-CARD LAYOUT
   Breiter Header | 3 gleich große Boxen | kompakte Regeln
   ========================================================= */

:root {
    --entry-card-height: 500px;
}

/* Gesamte Seite etwas kompakter und ruhiger */
.modern-entry-page {
    width: min(1280px, calc(100vw - 32px)) !important;
    padding-bottom: 76px !important;
}

/* Breites, aber nicht übermäßig hohes Banner */
.modern-entry-page .promo-banner {
    width: 100%;
    aspect-ratio: 5.4 / 1 !important;
    max-height: 210px !important;
    min-height: 0 !important;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 22px !important;
}

.modern-entry-page .promo-banner img {
    width: 100% !important;
    height: 100% !important;
    padding: 6px 12px !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Desktop: exakt drei gleich breite Bereiche */
.modern-entry-page .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 16px !important;
}

/* Alle drei Spalten gleich hoch */
.modern-entry-page .entry-column,
.modern-entry-page .rules-column {
    min-width: 0;
    height: var(--entry-card-height) !important;
    min-height: var(--entry-card-height) !important;
}

/* Flip-Container muss dieselbe Höhe übernehmen */
.modern-entry-page .flip-card,
.modern-entry-page .flip-card-inner,
.modern-entry-page .flip-face {
    height: var(--entry-card-height) !important;
    min-height: var(--entry-card-height) !important;
}

.modern-entry-page .flip-card {
    perspective: 1400px;
}

.modern-entry-page .flip-face,
.modern-entry-page .guest-card,
.modern-entry-page .rules-column {
    border-radius: 20px !important;
    padding: 20px !important;
    overflow: hidden;
}

/* Gleiche Kartenhöhe */
.modern-entry-page .guest-card {
    height: 100% !important;
    min-height: var(--entry-card-height) !important;
}

/* Etwas kompaktere Überschriften */
.modern-entry-page .entry-card-heading,
.modern-entry-page .rules-heading {
    gap: 10px;
    margin-bottom: 14px !important;
}

.modern-entry-page .entry-card-heading h2,
.modern-entry-page .rules-heading h2 {
    font-size: 1.16rem !important;
}

.modern-entry-page .entry-card-heading p,
.modern-entry-page .rules-heading p {
    font-size: .74rem !important;
    line-height: 1.35 !important;
}

.modern-entry-page .entry-card-icon,
.modern-entry-page .rules-heading > span,
.modern-entry-page .guest-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    border-radius: 13px !important;
    font-size: 1.25rem !important;
}

/* Kompaktere Formulare */
.modern-entry-page .compact-form {
    gap: 10px !important;
}

.modern-entry-page .compact-form label {
    font-size: .72rem !important;
}

.modern-entry-page .compact-form input:not([type="radio"]):not([type="checkbox"]) {
    min-height: 40px !important;
    height: 40px !important;
}

.modern-entry-page .primary-button {
    min-height: 42px !important;
    height: 42px !important;
}

/* Flip-Login optisch vertikal ausbalancieren */
.modern-entry-page .flip-front,
.modern-entry-page .flip-back {
    display: flex !important;
    flex-direction: column !important;
}

.modern-entry-page .flip-front .compact-form,
.modern-entry-page .flip-back .compact-form {
    flex: 0 0 auto;
}

/* Gastkarte: sauber zentriert und kompakt */
.modern-entry-page .guest-card {
    display: flex !important;
    flex-direction: column;
}

.modern-entry-page .guest-card .guest-icon {
    margin: 0 auto 10px !important;
}

.modern-entry-page .guest-card .entry-card-heading {
    margin-bottom: 14px !important;
}

.modern-entry-page .guest-card .guest-form {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

/* =========================================================
   KOMPAKTE REGELN – 12 Regeln in 2 Spalten auf Desktop
   ========================================================= */

.modern-entry-page .rules-column {
    display: flex;
    flex-direction: column;
}

.modern-entry-page .rules-heading {
    flex: 0 0 auto;
}

.modern-entry-page .rules-column .rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: hidden;
}

.modern-entry-page .rules-column .rule-list li {
    min-height: 0 !important;
    padding: 6px 7px 6px 31px !important;
    border-radius: 9px !important;
    font-size: .64rem !important;
    line-height: 1.28 !important;
}

.modern-entry-page .rules-column .rule-list li::before {
    left: 7px !important;
    width: 17px !important;
    height: 17px !important;
    font-size: .54rem !important;
}

/* Gleiche optische Tiefe aller Boxen */
.modern-entry-page .flip-face,
.modern-entry-page .guest-card,
.modern-entry-page .rules-column {
    background:
        linear-gradient(145deg, rgba(16, 29, 54, .88), rgba(7, 16, 33, .80)) !important;
    border: 1px solid rgba(91, 172, 255, .28) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 16px 34px rgba(0, 0, 0, .28),
        0 0 22px rgba(42, 135, 255, .05) !important;
}

/* Footer etwas unauffälliger */
.feature-row {
    margin-top: 12px !important;
    font-size: .7rem !important;
    opacity: .78;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1120px) {
    :root {
        --entry-card-height: 500px;
    }

    .modern-entry-page .entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .modern-entry-page .rules-column {
        grid-column: 1 / -1 !important;
        height: auto !important;
        min-height: 260px !important;
    }

    .modern-entry-page .rules-column .rule-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    :root {
        --entry-card-height: auto;
    }

    .modern-entry-page {
        width: min(100% - 16px, 620px) !important;
    }

    .modern-entry-page .promo-banner {
        aspect-ratio: 3.6 / 1 !important;
        max-height: none !important;
    }

    .modern-entry-page .entry-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .modern-entry-page .entry-column,
    .modern-entry-page .rules-column,
    .modern-entry-page .flip-card,
    .modern-entry-page .flip-card-inner,
    .modern-entry-page .flip-face,
    .modern-entry-page .guest-card {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Auf Mobilgeräten braucht die Flip-Fläche wieder genug Platz */
    .modern-entry-page .flip-card,
    .modern-entry-page .flip-card-inner,
    .modern-entry-page .flip-face {
        min-height: 540px !important;
    }

    .modern-entry-page .rules-column {
        grid-column: auto !important;
        min-height: 0 !important;
    }

    .modern-entry-page .rules-column .rule-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .modern-entry-page .promo-banner {
        aspect-ratio: 3 / 1 !important;
    }

    .modern-entry-page .flip-face,
    .modern-entry-page .guest-card,
    .modern-entry-page .rules-column {
        padding: 16px !important;
    }

    .modern-entry-page .flip-card,
    .modern-entry-page .flip-card-inner,
    .modern-entry-page .flip-face {
        min-height: 610px !important;
    }

    .modern-entry-page .rules-column .rule-list {
        grid-template-columns: 1fr !important;
    }

    .modern-entry-page .rules-column .rule-list li {
        font-size: .7rem !important;
    }
}

/* Wirklich letzter Login-Override nach allen Entry-Page-Regeln. */


.modern-entry-page .promo-banner,
.modern-entry-page .promo-banner img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.modern-entry-page .promo-banner {
    aspect-ratio: 5.4 / 1 !important;
    max-height: 230px !important;
    overflow: hidden !important;
}

.modern-entry-page .promo-banner img {
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
}

@media (max-width: 760px) {
    .modern-entry-page .promo-banner {
        aspect-ratio: 3 / 1 !important;
        max-height: 170px !important;
    }
}

/* =========================================================
   FINALER BACKGROUND-FIX – BILD BIS DIREKT ZUM FOOTER
   ========================================================= */

html,
body {
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* Wichtig:
   Das Body-Element selbst bekommt keinen eigenen dunklen Bild-Layer mehr.
   Das Hintergrundbild liegt auf einer festen Ebene über den kompletten
   sichtbaren Bereich. */
body.login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--text);
    background: #1b120d !important;
    overflow-x: hidden;
    overflow-y: auto;
}

/* DAS EIGENTLICHE HINTERGRUNDBILD
   100% 100% stellt sicher, dass es nicht vor dem Footer endet,
   sondern die komplette sichtbare Fläche von oben bis unten ausfüllt. */
body.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background-image: var(--site-background-image);
    background-repeat: no-repeat;
    background-position: center center;

    /* Bild wird über die komplette Breite UND Höhe dargestellt */
    background-size: 100% 100%;
}

/* Nur ein sehr leichter Abdunklungs-/Grid-Layer.
   Kein starkes dunkles Gradient mehr im unteren Bereich. */
body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            180deg,
            rgba(3, 6, 18, 0.08) 0%,
            rgba(3, 6, 18, 0.12) 100%
        ),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);

    background-size:
        100% 100%,
        42px 42px,
        42px 42px;

    background-position:
        center,
        center,
        center;
}

/* Der komplette Seiteninhalt bleibt transparent. */
body.login-page > main,
body.login-page > .page-shell,
body.login-page .page-shell,
body.login-page .modern-entry-page {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* Der freie Bereich unter den Karten darf das Hintergrundbild nicht übermalen. */
body.login-page .feature-row {
    background: transparent !important;
}

/* Footer bleibt leicht transparent, damit das Bild auch bis darunter sichtbar ist. */
body.login-page .fixed-footer {
    background: rgba(5, 8, 18, 0.34) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(147, 197, 253, 0.16);
    box-shadow: 0 -10px 28px rgba(2, 4, 12, 0.12);
    z-index: 50;
}

/* Footer-Inhalt bleibt normal positioniert und klickbar. */
body.login-page .fixed-footer * {
    position: relative;
}

/* Mobile: ebenfalls komplette sichtbare Fläche ausfüllen. */
@media (max-width: 760px) {
    body.login-page {
        min-height: 100svh;
    }

    body.login-page::after {
        background-size: 100% 100%;
        background-position: center center;
    }

    body.login-page .fixed-footer {
        background: rgba(5, 8, 18, 0.42) !important;
    }
}

/* Country Western action palette */
button:not(.close-btn), input[type="submit"], input[type="button"], .btn, [class*="-btn"] { background: linear-gradient(135deg, #d49a45, #a9652f) !important; border-color: #f0bd69 !important; color: #211309 !important; }
button:not(.close-btn):hover, input[type="submit"]:hover, input[type="button"]:hover, .btn:hover, [class*="-btn"]:hover { background: linear-gradient(135deg, #f0bd69, #d49a45) !important; color: #211309 !important; box-shadow: 0 6px 16px rgba(212, 154, 69, .28) !important; }
.close-btn, .icon-btn, .btn-icon { background: rgba(212, 154, 69, .12) !important; border-color: rgba(240, 189, 105, .55) !important; color: #f0bd69 !important; }
/* Country Western surface palette */
/* Prairie entrance theme */
body.login-page {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: #fff2d8;
    background:
        linear-gradient(135deg, rgba(20, 12, 8, .76), rgba(46, 27, 15, .74)),
        url('../images/bilder/background.png') center / cover fixed;
}

body.login-page::before {
    opacity: .28;
    background-image: repeating-linear-gradient(90deg, rgba(240, 189, 105, .1) 0 1px, transparent 1px 46px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.login-page .page-shell {
    width: min(1320px, calc(100vw - 36px));
    padding-top: 22px;
    gap: 18px;
}

.login-page .promo-banner {
    height: 178px;
    border: 2px solid rgba(240, 189, 105, .62);
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, rgba(71, 42, 24, .5), rgba(18, 10, 6, .82));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42), inset 0 0 0 5px rgba(20, 12, 8, .28);
}

.login-page .promo-banner::before {
    content: "LIVE AUS DER PRAIRIE";
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 18px;
    padding: 5px 9px;
    border: 1px solid rgba(240, 189, 105, .72);
    background: rgba(31, 17, 9, .78);
    color: #f0bd69;
    font: 700 .68rem/1 "Trebuchet MS", sans-serif;
    letter-spacing: .16em;
}

.login-page .promo-banner img { padding: 12px 24px; filter: saturate(.92) contrast(1.08); }
.login-page .entry-grid { grid-template-columns: minmax(0, 1.08fr) minmax(230px, .72fr) minmax(0, .88fr); gap: 18px; }
.login-page .glass-card,
.login-page .rules-column,
.login-page .guest-card {
    border: 1px solid rgba(240, 189, 105, .34);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(67, 40, 23, .94), rgba(30, 18, 11, .95));
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 244, 223, .1);
}

.login-page .modern-entry-page .flip-face.glass-card,
.login-page .modern-entry-page .rules-column,
.login-page .modern-entry-page .guest-card {
    border-color: rgba(240, 189, 105, .34) !important;
    background: linear-gradient(145deg, rgba(67, 40, 23, .94), rgba(30, 18, 11, .95)) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 244, 223, .1) !important;
}

.login-page .modern-entry-page .glass-card::before {
    background: linear-gradient(135deg, rgba(240, 189, 105, .72), rgba(169, 101, 47, .34), rgba(100, 54, 27, .7)) !important;
}

.login-page .modern-entry-page .promo-banner img {
    object-fit: fill !important;
    object-position: center;
}

.login-page .flip-face { padding: 26px; }
.login-page .entry-card-heading h2,
.login-page .rules-heading h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; color: #fff2d8; }
.login-page .entry-card-heading p,
.login-page .rules-heading p,
.login-page .hint { color: #c8ad8c; }
.login-page .entry-card-icon,
.login-page .guest-icon,
.login-page .rules-heading > span { color: #f0bd69; filter: sepia(.3); }
.login-page input[type="text"],
.login-page input[type="password"],
.login-page input[type="email"] { border-color: rgba(240, 189, 105, .28); border-radius: 6px; background: rgba(18, 11, 8, .8); }
.login-page input:focus { border-color: #f0bd69; box-shadow: 0 0 0 3px rgba(240, 189, 105, .15); }
.login-page .primary-button { border-radius: 6px; background: linear-gradient(135deg, #d49a45, #9b5428) !important; color: #211309 !important; }
.login-page .gender-group { border-color: rgba(240, 189, 105, .22); background: rgba(18, 11, 8, .34); }
.login-page .gender-group span { border-radius: 5px; border-color: rgba(240, 189, 105, .2); }
.login-page .gender-group input:checked + span { background: rgba(212, 154, 69, .24); border-color: #f0bd69; }
.login-page .rule-list li::before { border-radius: 4px; background: #a9652f; color: #fff2d8; }
.login-page .feature-row span { border-radius: 5px; border-color: rgba(240, 189, 105, .24); background: rgba(67, 40, 23, .62); color: #d9b887; }
.login-page .fixed-footer { background: rgba(24, 13, 8, .94); border-top-color: rgba(240, 189, 105, .3); }
.login-page .footer-nav a { border-radius: 4px; color: #f0bd69; }

@media (max-width: 980px) {
    .login-page .entry-grid { grid-template-columns: minmax(0, 1fr) minmax(230px, .78fr); }
    .login-page .rules-column { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 680px) {
    .login-page .page-shell { width: min(100vw - 18px, 560px); padding-top: 10px; }
    .login-page .promo-banner { height: 128px; min-height: 128px; }
    .login-page .promo-banner img { padding: 10px; }
    .login-page .entry-grid { grid-template-columns: 1fr; }
    .login-page .rules-column { grid-column: auto; }
    .login-page .flip-face { padding: 20px 16px; }
}

html, body { background-color: #1b120d; }
header, .header, .admin-sidebar, .sidebar, .admin-shell { background-color: #21150e !important; }
.card, .panel, .modal, .admin-card, .dashboard-card, .sidebar-card, .glass-card, .auth-box, .games-live-lobby, .games-matches-panel, .games-progress-panel, .game-leaderboard-dialog, .game-guide-dialog, .login-card { background-color: #3a2519 !important; border-color: rgba(212, 154, 69, .28) !important; }
