html, body {
    min-height: 100%;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .5);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.auth-shell,
.panel-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(79,124,255,0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(99,102,241,0.10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.auth-glow,
.panel-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
}

.auth-glow-1,
.panel-glow-1 {
    width: 340px;
    height: 340px;
    left: -80px;
    top: -60px;
    background: rgba(79, 124, 255, .20);
}

.auth-glow-2,
.panel-glow-2 {
    width: 360px;
    height: 360px;
    right: -80px;
    bottom: -80px;
    background: rgba(99, 102, 241, .18);
}

.glass-card {
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 40px rgba(15,23,42,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.panel-shell {
    display: flex;
}

.sidebar {
    width: 300px;
    min-width: 300px;
    position: relative;
    z-index: 20;
}

.panel-main {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 20;
    padding: 16px 16px 24px;
}

.panel-topbar {
    margin-bottom: 20px;
}

.panel-content {
    padding-bottom: 20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all .2s ease;
}

.sidebar-link:hover {
    background: rgba(79,124,255,.08);
    color: #1e3a8a;
}

.sidebar-link.is-active {
    background: linear-gradient(135deg, rgba(79,124,255,.14), rgba(79,124,255,.07));
    color: #2449c7;
    box-shadow: inset 0 0 0 1px rgba(79,124,255,.08);
}

.input-modern {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(226,232,240,1);
    background: rgba(255,255,255,.95);
    padding: 14px 16px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}

.input-modern:focus {
    border-color: rgba(79,124,255,.55);
    box-shadow: 0 0 0 4px rgba(79,124,255,.10);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #315eed, #4f7cff);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 12px 30px rgba(49,94,237,.20);
    transition: all .2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: .97;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,1);
    background: rgba(255,255,255,.85);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.stat-card {
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 40px rgba(15,23,42,.07);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 24px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.stat-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.feature-box {
    border-radius: 24px;
    border: 1px solid rgba(226,232,240,1);
    background: rgba(255,255,255,.85);
    padding: 18px;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.feature-text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.rlx-toast {
    pointer-events: auto;
    border-radius: 22px;
    padding: 14px 16px;
    box-shadow: 0 14px 35px rgba(15,23,42,.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: rlxToastIn .22s ease;
}

.rlx-toast-success {
    border: 1px solid rgba(16,185,129,.18);
    background: rgba(236,253,245,.90);
    color: #047857;
}

.rlx-toast-error {
    border: 1px solid rgba(239,68,68,.18);
    background: rgba(254,242,242,.92);
    color: #b91c1c;
}

.rlx-toast-info {
    border: 1px solid rgba(79,124,255,.18);
    background: rgba(239,246,255,.92);
    color: #1d4ed8;
}

@keyframes rlxToastIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        transition: left .25s ease;
    }

    .sidebar.is-open {
        left: 0;
    }

    .panel-main {
        width: 100%;
        padding: 12px;
    }
}

body.athena-auth-body {
    min-height: 100vh;
    background: #f6f6f4;
    color: #111111;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.athena-auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0,0,0,0.025), transparent 22%),
        radial-gradient(circle at bottom left, rgba(0,0,0,0.03), transparent 20%),
        linear-gradient(180deg, #f8f8f6 0%, #f3f3f1 100%);
}

.athena-auth-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        radial-gradient(rgba(0,0,0,.035) 0.6px, transparent 0.6px);
    background-size: 18px 18px;
}

.athena-auth-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-athena-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.auth-athena-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.auth-athena-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: #666;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

.auth-badge-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    color: #666;
}

.auth-badge-icon svg {
    width: 16px;
    height: 16px;
}

.auth-athena-hero {
    margin-bottom: 24px;
}

.auth-athena-title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #111;
    margin: 0;
}

.auth-athena-subtitle {
    margin-top: 14px;
    max-width: 680px;
    font-size: 24px;
    line-height: 1.35;
    color: #757575;
    font-weight: 400;
}

.auth-athena-card {
    width: 100%;
    max-width: 680px;
    border: 1px solid rgba(17,17,17,0.06);
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 34px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.06);
}

.field-block {
    display: block;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2b2b2b;
}

.field-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    border-radius: 22px;
    border: 1px solid rgba(17,17,17,0.08);
    background: rgba(255,255,255,0.82);
    padding: 0 18px;
    transition: all .2s ease;
}

.field-shell:focus-within {
    border-color: rgba(17,17,17,0.18);
    box-shadow: 0 0 0 4px rgba(17,17,17,0.04);
    background: rgba(255,255,255,0.96);
}

.field-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    flex: 0 0 auto;
    color: #8a8a8a;
}

.field-icon svg {
    width: 22px;
    height: 22px;
}

.athena-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    height: 62px;
    font-size: 16px;
    color: #111;
}

.athena-input::placeholder {
    color: #9a9a9a;
}

.athena-button {
    min-height: 62px;
    border: 0;
    border-radius: 22px;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .2s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    cursor: pointer;
}

.athena-button:hover {
    transform: translateY(-1px);
    background: #1a1a1a;
}

.athena-button:disabled {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.btn-arrow svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .athena-auth-container {
        padding: 20px 14px;
    }

    .auth-athena-subtitle {
        font-size: 18px;
    }

    .auth-athena-card {
        padding: 20px;
        border-radius: 28px;
    }
}

#appSidebar {
  -webkit-overflow-scrolling: touch;
}

#appSidebar::-webkit-scrollbar {
  width: 8px;
}

#appSidebar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

#appSidebar::-webkit-scrollbar-track {
  background: transparent;
}