html,
body {
    min-height: 100%;
}

body {
    background-color: #f8f9fa;
}

.auth-body {
    margin: 0;
    background: #2f3136;
    color: #fff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 48%) minmax(360px, 52%);
}

.auth-left,
.auth-right {
    padding: 2rem;
}

.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 0.5rem;
}

.auth-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.9;
}

.auth-brand p {
    color: #cfd5df;
}

.auth-illustration {
    position: relative;
    min-height: 270px;
    border-radius: 1.25rem;
    background: linear-gradient(140deg, #1d2638 0%, #25385e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb-a {
    width: 180px;
    height: 180px;
    background: rgba(116, 178, 255, 0.36);
    top: 8%;
    left: 9%;
}

.orb-b {
    width: 120px;
    height: 120px;
    background: rgba(59, 130, 246, 0.45);
    bottom: 11%;
    left: 29%;
}

.orb-c {
    width: 160px;
    height: 160px;
    background: rgba(148, 163, 184, 0.28);
    right: 10%;
    top: 17%;
}

.monitor {
    position: absolute;
    bottom: 1.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(82%, 390px);
}

.monitor-header {
    height: 0.8rem;
    border-radius: 0.6rem 0.6rem 0 0;
    background: #7caaf2;
}

.monitor-body {
    height: 165px;
    border-radius: 0 0 0.8rem 0.8rem;
    background: linear-gradient(180deg, #f8fbff 0%, #e5edfb 100%);
    border: 6px solid #c7d6f2;
}

.auth-right {
    overflow-y: auto;
}

.auth-card {
    background: rgba(10, 14, 23, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.9rem;
    padding: 1.1rem;
}

#authMenu .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #e7ebf2;
}

#authMenu .nav-link.active {
    border-color: #7ea7ea;
    background: rgba(78, 130, 214, 0.35);
}

.auth-card h2,
.auth-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

.auth-card .form-control::placeholder {
    color: #cfd5df;
}

.auth-card pre {
    border-color: rgba(255, 255, 255, 0.26);
}

.auth-btn {
    min-width: 110px;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(80rem 36rem at 110% -20%, rgba(13, 110, 253, 0.08), transparent 70%), radial-gradient(70rem 32rem at -10% 120%, rgba(25, 135, 84, 0.08), transparent 70%);
    pointer-events: none;
}

.app-shell {
    max-width: 1200px;
}

.tracking-wide {
    letter-spacing: 0.08em;
}

.view-stack {
    animation: fade-slide 180ms ease-out;
}

#appMenu .nav-link {
    border: 1px solid var(--bs-border-color);
    color: var(--bs-emphasis-color);
    background-color: var(--bs-tertiary-bg);
}

#appMenu .nav-link.active {
    border-color: var(--bs-primary);
}

.app-section {
    animation: fade-slide 180ms ease-out;
}

.result-shell {
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.8rem;
    background: var(--bs-light-bg-subtle);
}

.result-shell .table {
    margin-bottom: 0;
}

.mfa-qr-code {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    background: #fff;
}

.mfa-qr-code img,
.mfa-qr-code canvas {
    display: block;
}

pre {
    min-height: 180px;
    max-height: 360px;
    overflow: auto;
    border-radius: var(--bs-border-radius);
    border: 1px solid #1f2937;
    background: #111827;
    color: #d1fae5;
    padding: 0.9rem;
    font-size: 0.8rem;
}

@keyframes fade-slide {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-left {
        padding-bottom: 0;
    }
    .auth-illustration {
        min-height: 200px;
    }
}