
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --background: #09090d;
    --surface: #111116;
    --surface-light: #19191f;
    --border: #292930;
    --red: #ff3030;
    --red-dark: #8b0000;
    --text: #f5f5f7;
    --muted: #92929d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(139, 0, 0, .17), transparent 55%),
        var(--background);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 42px;
    background: rgba(17, 17, 22, .96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.brand {
    text-align: center;
    margin-bottom: 38px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 0 30px rgba(255, 48, 48, .2);
}

.brand h1 {
    font-size: 19px;
    letter-spacing: 2px;
    font-weight: 800;
}

.brand h1 span {
    color: var(--red);
}

.brand p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2.5px;
}

.auth-heading {
    margin-bottom: 25px;
}

.auth-heading h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.auth-heading p {
    color: var(--muted);
    font-size: 13px;
}

.alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 48, 48, .3);
    border-radius: 8px;
    background: rgba(255, 48, 48, .08);
    color: #ff7777;
    font-size: 13px;
}

form label {
    display: block;
    margin: 18px 0 9px;
    color: #d5d5dc;
    font-size: 12px;
    font-weight: 600;
}

form input {
    width: 100%;
    padding: 14px;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-light);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color .2s;
}

form input:focus {
    border-color: var(--red);
}

form input::placeholder {
    color: #686873;
}

form button {
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(100deg, var(--red-dark), var(--red));
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

form button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

form button span {
    float: right;
}

.auth-card footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }
}

/* =========================================
   ELYSIUM DASHBOARD
========================================= */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 250px;
    padding: 25px 18px;
    background: #0e0e13;
    border-right: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 35px;
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 11px;
    font-size: 22px;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
    font-size: 14px;
    letter-spacing: 1.5px;
}

.sidebar-brand span {
    margin-top: 3px;
    color: var(--red);
    font-size: 10px;
}

.sidebar-label {
    padding: 0 10px 12px;
    color: #666671;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.sidebar nav {
    display: grid;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #a3a3ae;
    font-size: 13px;
    text-decoration: none;
    transition: .2s;
}

.nav-link span {
    font-size: 17px;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(255, 48, 48, .15);
    background: rgba(255, 48, 48, .09);
    color: #ff6666;
}

.sidebar-bottom {
    margin-top: auto;
}

.account-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-weight: 800;
}

.account-info strong,
.account-info span {
    display: block;
}

.account-info strong {
    font-size: 12px;
}

.account-info span {
    margin-top: 4px;
    color: var(--red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-bottom form button.logout-button {
    margin-top: 10px;
    padding: 11px;
    border: 1px solid var(--border);
    background: transparent;
    color: #aaaab4;
    font-size: 12px;
}

.sidebar-bottom form button.logout-button:hover {
    border-color: var(--red);
    color: #ff6666;
}

.main-content {
    width: calc(100% - 250px);
    max-width: 1600px;
    margin-left: 250px;
    padding: 35px 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 25px;
}

.topbar p,
.section-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #244b35;
    border-radius: 30px;
    background: rgba(45, 150, 85, .08);
    color: #65d994;
    font-size: 11px;
}

.status-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #45d77e;
    box-shadow: 0 0 10px #45d77e;
}

.welcome-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 190px;
    overflow: hidden;
    padding: 35px;
    border: 1px solid rgba(255, 48, 48, .2);
    border-radius: 13px;
    background:
        radial-gradient(ellipse at 85% 50%, rgba(255, 48, 48, .16), transparent 45%),
        linear-gradient(120deg, #171116, #111116);
}

.eyebrow {
    color: #ff6666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.welcome-panel h2 {
    margin-top: 13px;
    font-size: 25px;
}

.welcome-panel p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.welcome-mark {
    margin-right: 25px;
    color: rgba(255, 48, 48, .12);
    font-size: 130px;
    font-weight: 800;
    line-height: 1;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 17px;
}

.section-heading h2 {
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.stat-card {
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
    color: var(--muted);
    font-size: 12px;
}

.stat-icon {
    color: #ff6666;
    font-size: 19px;
}

.stat-card > strong,
.stat-card > small {
    display: block;
}

.stat-card > strong {
    font-size: 19px;
}

.stat-card > small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.activity-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #45d77e;
    box-shadow: 0 0 10px rgba(69, 215, 126, .3);
}

.activity-dot.pending {
    background: #777783;
    box-shadow: none;
}

.activity-item > div:nth-child(2) {
    flex: 1;
}

.activity-item strong {
    font-size: 12px;
}

.activity-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.activity-tag {
    padding: 6px 9px;
    border-radius: 5px;
    background: rgba(69, 215, 126, .09);
    color: #65d994;
    font-size: 10px;
}

.pending-tag {
    background: rgba(140, 140, 150, .1);
    color: #9999a5;
}

.dashboard-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: #666671;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .main-content {
        padding: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-bottom {
        margin-top: 25px;
    }

    .dashboard-layout {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 22px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-mark {
        display: none;
    }

    .activity-item {
        flex-wrap: wrap;
    }
}
