/* ─────────────────────────────────────────────────────────────────────────────
   EDEV Dashboard/Login · BCSD/Forensik/Admin-Menü Style
   Pfad im Projekt: /public/assets/css/auth-dashboard.css
   ───────────────────────────────────────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

:root {
    --bg: #05080a;
    --bg-soft: #091013;
    --surface: rgba(10, 16, 19, 0.78);
    --surface-2: rgba(13, 21, 25, 0.9);
    --surface-3: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.065);
    --border: rgba(232, 238, 230, 0.105);
    --border-strong: rgba(232, 238, 230, 0.18);
    --text: #f4f7f2;
    --text-soft: rgba(244, 247, 242, 0.72);
    --text-muted: rgba(244, 247, 242, 0.48);
    --green: #9bcf9d;
    --green-soft: rgba(155, 207, 157, 0.115);
    --green-mid: rgba(155, 207, 157, 0.24);
    --green-line: rgba(155, 207, 157, 0.36);
    --gold: #d8bd7a;
    --gold-soft: rgba(216, 189, 122, 0.13);
    --red: #f08f7f;
    --shadow-lg: 0 26px 80px rgba(0, 0, 0, 0.38);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.24);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 4%, rgba(155, 207, 157, 0.13), transparent 30rem),
        radial-gradient(circle at 82% 20%, rgba(216, 189, 122, 0.08), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 38%),
        var(--bg);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 88%);
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.045em;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: .95;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(24px, 2vw, 34px);
}

.muted {
    color: var(--text-muted);
}

.eyebrow,
.section-kicker {
    color: var(--green);
    font-size: 12px;
    letter-spacing: .13em;
    font-weight: 950;
    text-transform: uppercase;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 12px;
}

.badge,
.tile-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #e9fff0;
    background: var(--green-soft);
    border: 1px solid rgba(155, 207, 157, 0.22);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .035em;
}

.btn,
button,
.discord-login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--green-line);
    color: #ecfff0;
    background:
        linear-gradient(180deg, rgba(155, 207, 157, 0.17), rgba(155, 207, 157, 0.08));
    cursor: pointer;
    font-weight: 850;
    text-decoration: none;
    transition:
        transform .16s var(--ease),
        border-color .16s var(--ease),
        background .16s var(--ease),
        box-shadow .16s var(--ease),
        opacity .16s var(--ease);
}

.btn:hover,
button:hover,
.discord-login-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(155, 207, 157, 0.52);
    background:
        linear-gradient(180deg, rgba(155, 207, 157, 0.23), rgba(155, 207, 157, 0.11));
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
}

.btn:active,
button:active,
.discord-login-btn:active {
    transform: translateY(0) scale(.985);
}

.btn-primary,
.discord-login-btn {
    color: #061009;
    border-color: rgba(155, 207, 157, 0.6);
    background: linear-gradient(135deg, #b5e8b8, #7fcf86);
    box-shadow: 0 18px 48px rgba(155, 207, 157, 0.16);
}

.btn-primary:hover,
.discord-login-btn:hover {
    color: #061009;
    background: linear-gradient(135deg, #c9f3cb, #8cdb92);
}

.btn-ghost {
    color: var(--text-soft);
    border-color: var(--border);
    background: rgba(255, 255, 255, .035);
}

.brand-line,
.login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-line strong,
.login-brand strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 15px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--green);
    background:
        radial-gradient(circle at top left, rgba(155, 207, 157, .22), transparent 70%),
        rgba(155, 207, 157, .09);
    border: 1px solid rgba(155, 207, 157, .23);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .28);
    font-weight: 1000;
}

.brand-mark-large {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    font-size: 22px;
}

.dashboard-shell {
    width: min(1380px, calc(100% - 44px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 0 46px;
}

.dashboard-hero,
.server-section,
.info-tile,
.card,
.modal-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022)),
        var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.dashboard-hero::before,
.server-section::before,
.info-tile::before,
.card::before,
.modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .045), transparent);
    transform: translateX(-130%);
    transition: transform .72s var(--ease);
}

.dashboard-hero:hover::before,
.server-section:hover::before,
.info-tile:hover::before,
.card:hover::before,
.modal-card:hover::before {
    transform: translateX(130%);
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 26px;
    min-height: 260px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 12% 10%, rgba(155, 207, 157, .15), transparent 36%),
        radial-gradient(circle at 88% 15%, rgba(216, 189, 122, .08), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        rgba(10, 16, 19, .82);
    box-shadow: var(--shadow-lg);
    animation: fadeUp .38s var(--ease) both;
}

.hero-content {
    display: grid;
    gap: 42px;
}

.hero-title-block p {
    max-width: 560px;
    margin-bottom: 0;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.info-tile {
    min-height: 142px;
    padding: 20px;
    border-radius: var(--radius-lg);
    animation: fadeUp .42s var(--ease) both;
}

.info-tile strong {
    display: block;
    margin-top: 12px;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.info-tile p {
    margin: 8px 0 0;
    line-height: 1.55;
}

.accent-tile {
    background:
        radial-gradient(circle at 20% 0%, rgba(216, 189, 122, .1), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022)),
        var(--surface);
}

.server-section {
    margin-top: 18px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--radius-xl);
    animation: fadeUp .46s var(--ease) both;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head p {
    max-width: 470px;
    margin-bottom: 4px;
    line-height: 1.55;
}

.grid,
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    min-height: 210px;
    padding: 20px;
    border-radius: 24px;
    cursor: pointer;
    transition:
        transform .18s var(--ease),
        border-color .18s var(--ease),
        background .18s var(--ease),
        box-shadow .18s var(--ease);
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 999px;
    background: var(--green-line);
    opacity: .8;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(155, 207, 157, .32);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .027)),
        var(--surface-2);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .3);
}

.card h2,
.card h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.card p {
    line-height: 1.55;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.card-actions button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(14px);
}

.modal.show {
    display: grid;
}

.modal.show .modal-card {
    animation: modalIn .24s var(--ease) both;
}

.modal-card {
    width: min(760px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(155, 207, 157, .09), transparent 38%),
        rgba(11, 17, 20, .96);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .58);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.modal-head h2 {
    margin: 12px 0 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

pre {
    margin: 0;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    padding: 18px;
    color: #e9fff0;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(155, 207, 157, .055), transparent 38%),
        rgba(5, 9, 11, .62);
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(100%, 470px);
}

.login-card {
    width: 100%;
    min-height: auto;
    padding: clamp(26px, 5vw, 38px);
    border-radius: 32px;
    cursor: default;
    animation: loginIn .42s var(--ease) both;
}

.login-card::after {
    display: none;
}

.login-brand {
    margin-bottom: 44px;
}

.login-content h1 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: .98;
}

.login-content p {
    margin-bottom: 24px;
    line-height: 1.7;
}

.discord-login-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    font-size: 15px;
}

.discord-dot {
    font-size: 13px;
}

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

@keyframes loginIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.975);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 760px) {
    .dashboard-shell {
        width: min(100% - 24px, 1380px);
        padding-top: 12px;
    }

    .dashboard-hero,
    .section-head,
    .modal-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .modal-actions {
        justify-content: flex-start;
    }

    .hero-actions .btn,
    .hero-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
