* { box-sizing: border-box; }

:root {
    --bg-a: #050710;
    --bg-b: #070d18;
    --panel: rgba(9, 14, 28, 0.76);
    --panel-border: rgba(124, 174, 255, 0.16);
    --text: #dbe8ff;
    --muted: #8aa3c8;
    --gold: #f3dfb0;
    --blue: #7bc5ff;
    --purple: #9b7dff;
    --green: #55ff84;
    --red: #ff6676;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Candara", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 126, 255, 0.24), transparent 28%),
        radial-gradient(circle at 15% 20%, rgba(67, 181, 255, 0.14), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(155, 125, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.56)),
        linear-gradient(180deg, var(--bg-b), var(--bg-a));
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        linear-gradient(120deg, transparent 20%, rgba(123, 197, 255, 0.06) 50%, transparent 80%),
        linear-gradient(0deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

body::after {
    background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.7) 100%);
}

.navbar,
.hero-shell,
.container,
.footer-wrap {
    position: relative;
    z-index: 1;
}

.navbar {
    background: rgba(3, 7, 15, 0.96) !important;
    border-bottom: 1px solid rgba(124, 174, 255, 0.14);
    padding: 14px 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--gold) !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(123, 197, 255, 0.2);
}

.hero-shell {
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 34px 16px 12px;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    display: block;
    width: min(260px, 48vw);
    height: auto;
    filter:
        drop-shadow(0 0 18px rgba(123, 197, 255, 0.18))
        drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.hero-copy {
    text-align: center;
}

.hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f5f0de;
    line-height: 1.05;
    text-shadow: 0 0 24px rgba(123, 197, 255, 0.16);
}

.hero-subtitle {
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.75;
    pointer-events: none;
}

.hero-orb-left {
    left: -120px;
    top: -20px;
    background: radial-gradient(circle, rgba(76, 165, 255, 0.22), transparent 62%);
}

.hero-orb-right {
    right: -130px;
    top: -40px;
    background: radial-gradient(circle, rgba(155, 125, 255, 0.22), transparent 62%);
}

.container {
    width: 680px;
    max-width: calc(100vw - 32px);
}

.install-container {
    margin: 8px auto 28px;
    padding: 28px 32px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(14px);
}

.install-container h3 {
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(123, 197, 255, 0.16);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
}

.table td {
    padding: 11px 6px;
    border-bottom: 1px solid rgba(123, 197, 255, 0.08);
    color: var(--text);
    font-size: 14px;
}

.table tr:last-child td { border-bottom: 0; }

.ok { color: var(--green); font-weight: 700; }
.error { color: var(--red); font-weight: 700; }
.required { color: var(--red); }

.btn-primary,
.btn-block {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background:
        linear-gradient(90deg, rgba(35, 75, 168, 0.96), rgba(106, 70, 186, 0.98));
    border: 1px solid rgba(243, 223, 176, 0.34);
    border-radius: 12px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    border-color: rgba(243, 223, 176, 0.58);
    color: #fff;
    text-decoration: none;
}

.form-control,
input[type="text"],
input[type="password"],
select {
    background: rgba(5, 10, 18, 0.9) !important;
    border: 1px solid rgba(123, 197, 255, 0.22) !important;
    color: var(--text) !important;
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    font-size: 14px;
}

.form-control:focus,
input:focus,
select:focus {
    outline: none;
    border-color: rgba(123, 197, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(123, 197, 255, 0.12);
}

label {
    color: var(--text);
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.form-group { margin-bottom: 16px; }

.footer-wrap {
    text-align: center;
    padding: 12px 0 28px;
    color: var(--muted);
    font-size: 12px;
}

.footer-wrap h5 {
    color: #6f88b0;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-wrap a {
    text-decoration: none;
    display: inline-block;
}

.footer-wrap a:hover {
    color: #fff;
}

.footer-logo {
    display: block;
    width: 190px;
    height: auto;
    margin: 6px auto 0;
    opacity: 0.82;
    filter: drop-shadow(0 0 10px rgba(123, 197, 255, 0.14));
}

.screen-reader-text { margin-bottom: 20px; }

.alert-danger {
    background: rgba(180, 30, 30, 0.25);
    border: 1px solid rgba(255, 80, 80, 0.4);
    color: #ff9ea8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(30, 140, 60, 0.25);
    border: 1px solid rgba(80, 255, 120, 0.35);
    color: #80ffaa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .hero-shell {
        min-height: 220px;
        padding-top: 24px;
    }

    .hero-brand {
        gap: 10px;
    }

    .hero-logo {
        width: min(220px, 70vw);
    }

    .hero-copy {
        text-align: center;
    }

    .hero-subtitle {
        letter-spacing: 0.1em;
    }

    .install-container {
        padding: 22px 18px;
        border-radius: 16px;
    }
}
