:root {
    --theme-primary: #171b23;
    --theme-accent: #f59e0b;
    --theme-muted: #93a3ba;
    --theme-border: #2f3d54;
    --theme-bg: #0d1118;
    --theme-bg-2: #131923;
    --theme-bg-3: #1e2634;
    --card-radius: 1rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.public-body {
    margin: 0;
    color: #f6f8fb;
    background: radial-gradient(circle at 0% 0%, #232b38 0%, var(--theme-bg-2) 44%, var(--theme-bg) 100%);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #263245;
    background: rgba(12, 16, 24, 0.86);
}

.navbar-brand {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffffff;
}

.btn {
    border-radius: 0.65rem;
    font-weight: 600;
}

.btn-accent {
    color: #151515;
    border-color: transparent;
    background: linear-gradient(135deg, var(--theme-accent), #ffbe4a);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #151515;
    background: linear-gradient(135deg, #ffc14f, #ff9f1f);
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 70px);
    border-bottom: 1px solid #2a3546;
    background:
        radial-gradient(circle at 75% 0%, rgba(245, 158, 11, 0.23), transparent 42%),
        linear-gradient(160deg, rgba(24, 32, 45, 0.96), rgba(15, 20, 30, 0.96));
}

.hero-grid {
    min-height: calc(100vh - 70px);
    align-items: center;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #3a4c67;
    background: rgba(5, 9, 14, 0.58);
    color: #d7e0ec;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.05;
    margin: 0.9rem 0 1rem;
}

.hero-text {
    color: var(--theme-muted);
    font-size: 1.06rem;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(30, 37, 50, 0.94), rgba(18, 24, 34, 0.94));
    border: 1px solid var(--theme-border);
    border-radius: var(--card-radius);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    padding: 1.25rem;
}

.hero-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1.12rem;
}

.hero-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.hero-panel-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #d9e3ef;
}

.hero-panel-list i {
    color: #7cc2ff;
    margin-top: 0.15rem;
}

.section-light {
    background: linear-gradient(180deg, #141a24 0%, #111722 100%);
    border-top: 1px solid #28364a;
    border-bottom: 1px solid #28364a;
}

.feature-card {
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 36, 48, 0.96), rgba(19, 25, 35, 0.96));
    border: 1px solid #2f3d54;
    border-radius: var(--card-radius);
    padding: 1.15rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.02rem;
    margin: 0 0 0.4rem;
}

.feature-card p {
    margin: 0;
    color: #9fb0c6;
}

.feature-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(44, 57, 77, 0.9), rgba(28, 37, 51, 0.9));
    border: 1px solid #3c4e68;
    margin-bottom: 0.65rem;
}

.cta-band {
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16), transparent 54%), #0f151f;
    border-top: 1px solid #2b374b;
    border-bottom: 1px solid #2b374b;
}

.site-footer {
    border-top: 1px solid #2c394d;
    color: #9db0c8;
}

.site-footer a {
    color: #cdd9e8;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem 1rem;
}

.auth-card {
    width: min(930px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 1rem;
    border: 1px solid #2f3d54;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    background: #111722;
}

.auth-side {
    padding: 2rem;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.28), transparent 42%),
        linear-gradient(160deg, #1a2433, #131a25);
}

.auth-side h1 {
    margin: 0.8rem 0;
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.auth-side p {
    color: #b6c4d8;
    margin: 0;
}

.auth-main {
    padding: 2rem;
    background: linear-gradient(180deg, #121a26, #101621);
}

.auth-main h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.auth-main .form-label {
    color: #d6e0ee;
    font-size: 0.92rem;
}

.auth-main .form-control {
    border-color: #31435c;
    background: #0d131c;
    color: #eef4fc;
}

.auth-main .form-control:focus {
    border-color: #4f6e95;
    box-shadow: 0 0 0 0.2rem rgba(79, 110, 149, 0.25);
    background: #0d131c;
    color: #eef4fc;
}

.auth-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.auth-note {
    margin-top: 0.9rem;
    color: #96a9c2;
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(141, 36, 53, 0.24);
    border: 1px solid rgba(194, 63, 88, 0.6);
    color: #ffdbe2;
    border-radius: 0.65rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 991.98px) {
    .hero-section,
    .hero-grid {
        min-height: auto;
    }
}

@media (max-width: 840px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
}
