:root {
    --future-primary: #18375d;
    --future-primary-bright: #68a7ee;
    --future-accent: #68a7ee;
    --future-deep: #18375d;
    --future-ink: #18375d;
    --future-panel: rgba(255, 255, 255, 0.96);
    --future-panel-soft: rgba(255, 255, 255, 0.78);
    --future-cyan: #68a7ee;
    --future-cyan-soft: #68a7ee;
    --future-text: #18375d;
    --future-muted: rgba(24, 55, 93, 0.7);
    --future-line: rgba(104, 167, 238, 0.3);
    --future-line-strong: rgba(104, 167, 238, 0.68);
    --future-shadow: 0 28px 80px rgba(24, 55, 93, 0.16);
    --future-surface: #ffffff;
    --future-surface-soft: rgba(104, 167, 238, 0.1);
    --future-focus: #18375d;
    --green: var(--future-primary);
    --green-dark: var(--future-primary);
    --blue: var(--future-cyan);
    --text: var(--future-text);
    --muted: var(--future-muted);
    --line: var(--future-line);
}

body.public-future,
body.system-future {
    position: relative;
    isolation: isolate;
    color: var(--future-text);
    background:
        radial-gradient(circle at 10% 8%, rgba(104, 167, 238, 0.22), transparent 28rem),
        radial-gradient(circle at 90% 86%, rgba(104, 167, 238, 0.16), transparent 32rem),
        linear-gradient(145deg, #ffffff 0%, rgba(104, 167, 238, 0.08) 52%, #ffffff 100%);
}

body.public-future::before,
body.system-future::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(104, 167, 238, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 167, 238, 0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

body.public-future::after,
body.system-future::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 48%, rgba(104, 167, 238, 0.06) 49%, transparent 50%),
        radial-gradient(circle at center, transparent 35%, rgba(24, 55, 93, 0.035) 100%);
}

body.public-future a,
body.public-future button,
body.public-future input,
body.system-future a,
body.system-future button,
body.system-future input,
body.system-future select,
body.system-future textarea {
    -webkit-tap-highlight-color: transparent;
}

body.public-future a:focus-visible,
body.public-future button:focus-visible,
body.public-future input:focus-visible,
body.system-future a:focus-visible,
body.system-future button:focus-visible,
body.system-future input:focus-visible,
body.system-future select:focus-visible,
body.system-future textarea:focus-visible {
    outline: 3px solid var(--future-focus);
    outline-offset: 3px;
}

/* Welcome page */
body.public-welcome .navbar {
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--future-line);
    box-shadow: 0 10px 35px rgba(24, 55, 93, 0.09);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

body.public-welcome .nav-inner {
    min-height: 88px;
}

body.public-welcome .brand-logo,
body.public-auth .logo {
    border-color: #ffffff;
    box-shadow:
        0 0 0 4px rgba(104, 167, 238, 0.15),
        0 12px 30px rgba(24, 55, 93, 0.18);
}

body.public-welcome .brand-text h1 {
    color: var(--future-text);
    text-shadow: none;
}

body.public-welcome .brand-text span {
    color: var(--future-primary);
}

body.public-welcome .btn {
    position: relative;
    min-height: 48px;
    overflow: hidden;
    color: var(--future-primary);
    border: 1px solid var(--future-line);
    border-radius: 15px 5px 15px 5px;
    letter-spacing: 0.015em;
    box-shadow: 0 12px 28px rgba(24, 55, 93, 0.12);
}

body.public-welcome .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.13), transparent 76%);
    transform: translateX(-110%);
    transition: transform 0.45s ease;
}

body.public-welcome .btn:hover::after {
    transform: translateX(110%);
}

body.public-welcome .btn-primary,
body.public-welcome .btn-light {
    color: #fff;
    background: var(--future-primary);
    border-color: var(--future-primary);
    box-shadow: 0 14px 34px rgba(24, 55, 93, 0.22);
}

body.public-welcome .btn-outline,
body.public-welcome .btn-ghost {
    color: var(--future-primary);
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--future-line-strong);
    box-shadow: inset 0 1px 0 #ffffff;
}

body.public-welcome .btn:hover {
    border-color: var(--future-accent, #68a7ee);
    box-shadow: 0 14px 30px rgba(24, 55, 93, 0.18), 0 0 0 4px rgba(104, 167, 238, 0.12);
    transform: translateY(-2px);
}

body.public-welcome main,
body.public-welcome .footer {
    position: relative;
    z-index: 1;
}

body.public-welcome .hero {
    position: relative;
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
}

body.public-welcome .hero::before {
    content: "";
    position: absolute;
    top: 16%;
    left: -8rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(104, 167, 238, 0.32);
    border-radius: 50%;
    box-shadow:
        0 0 0 36px rgba(104, 167, 238, 0.05),
        0 0 0 72px rgba(104, 167, 238, 0.025);
}

body.public-welcome .badge,
body.public-welcome .floating-card {
    color: var(--future-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--future-line);
    box-shadow: 0 18px 40px rgba(24, 55, 93, 0.13), inset 0 1px 0 #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.public-welcome .badge {
    border-radius: 14px 4px 14px 4px;
}

body.public-welcome .badge-dot,
body.public-auth .badge-dot {
    background: var(--future-cyan);
    box-shadow: 0 0 0 5px rgba(104, 167, 238, 0.15), 0 0 18px rgba(104, 167, 238, 0.58);
}

body.public-welcome .hero-title {
    color: var(--future-text);
    text-shadow: 0 6px 30px rgba(24, 55, 93, 0.09);
}

body.public-welcome .hero-title span {
    color: var(--future-primary);
    text-shadow: 0 0 28px rgba(104, 167, 238, 0.18);
}

body.public-welcome .hero-text,
body.public-welcome .section-head p,
body.public-welcome .feature-card p,
body.public-welcome .stat-card span {
    color: var(--future-muted);
}

body.public-welcome .stat-card,
body.public-welcome .feature-card {
    position: relative;
    overflow: hidden;
    color: var(--future-text);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(104, 167, 238, 0.09));
    border: 1px solid var(--future-line);
    border-radius: 20px 6px 20px 6px;
    box-shadow: 0 18px 45px rgba(24, 55, 93, 0.11), inset 0 1px 0 #ffffff;
}

body.public-welcome .stat-card::before,
body.public-welcome .feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, var(--future-cyan), transparent);
}

body.public-welcome .stat-card strong,
body.public-welcome .feature-card h3,
body.public-welcome .section-head h2 {
    color: var(--future-text);
}

body.public-welcome .stat-card strong {
    color: var(--future-primary);
}

body.public-welcome .hero-visual {
    isolation: isolate;
}

body.public-welcome .glow {
    width: 88%;
    height: 88%;
    background: radial-gradient(circle, rgba(104, 167, 238, 0.3), rgba(104, 167, 238, 0.12) 48%, transparent 72%);
    filter: blur(28px);
}

body.public-welcome .image-shell {
    padding: 10px;
    background: linear-gradient(145deg, #ffffff, rgba(104, 167, 238, 0.24));
    border: 1px solid var(--future-line-strong);
    border-radius: 30px 8px 30px 8px;
    box-shadow:
        0 35px 90px rgba(24, 55, 93, 0.2),
        0 0 40px rgba(104, 167, 238, 0.12),
        inset 0 1px 0 #ffffff;
}

body.public-welcome .image-shell img {
    border-radius: 22px 5px 22px 5px;
    filter: saturate(0.9) contrast(1.04);
}

body.public-welcome .floating-card {
    border-radius: 16px 5px 16px 5px;
}

body.public-welcome .floating-card strong {
    color: var(--future-text);
}

body.public-welcome .floating-card span {
    color: var(--future-muted);
}

body.public-welcome .section {
    position: relative;
    padding: clamp(4rem, 7vw, 6.5rem) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(104, 167, 238, 0.08));
    border-top: 1px solid rgba(104, 167, 238, 0.18);
    border-bottom: 1px solid rgba(104, 167, 238, 0.18);
}

body.public-welcome .section-head h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: var(--future-cyan);
    box-shadow: 0 0 18px rgba(104, 167, 238, 0.46);
}

body.public-welcome .feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--future-line-strong);
    box-shadow: 0 22px 55px rgba(24, 55, 93, 0.16), 0 0 26px rgba(104, 167, 238, 0.12);
}

body.public-welcome .feature-icon {
    color: var(--future-primary);
    background: rgba(104, 167, 238, 0.14);
    border: 1px solid rgba(104, 167, 238, 0.3);
    box-shadow: inset 0 1px 0 #ffffff;
}

body.public-welcome .cta-box {
    background:
        radial-gradient(circle at 5% 10%, rgba(104, 167, 238, 0.35), transparent 28%),
        linear-gradient(135deg, #18375d, rgba(24, 55, 93, 0.9));
    border: 1px solid rgba(104, 167, 238, 0.7);
    border-radius: 28px 8px 28px 8px;
    box-shadow: var(--future-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.public-welcome .cta-box::before,
body.public-welcome .cta-box::after {
    border-color: rgba(104, 167, 238, 0.32);
    background: rgba(104, 167, 238, 0.14);
}

body.public-welcome .cta-text h3 {
    color: #fff;
}

body.public-welcome .cta-text p {
    color: rgba(255, 255, 255, 0.78);
}

body.public-welcome .footer {
    color: var(--future-muted);
    border-top: 1px solid var(--future-line);
    background: rgba(255, 255, 255, 0.76);
}

body.public-welcome .footer-brand {
    color: var(--future-primary);
}

body.public-welcome .footer-brand img {
    border: 1px solid var(--future-line);
}

/* Login and register */
body.public-auth {
    overflow-x: hidden;
    padding: clamp(14px, 3vw, 34px);
}

body.public-auth .login-box,
body.public-auth .register-box {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--future-line);
    border-radius: 34px 9px 34px 9px;
    box-shadow:
        0 36px 100px rgba(24, 55, 93, 0.2),
        0 0 55px rgba(104, 167, 238, 0.12),
        inset 0 1px 0 #ffffff;
}

body.public-auth .login-box::before,
body.public-auth .register-box::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 42%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--future-cyan), transparent);
    box-shadow: 0 0 18px rgba(104, 167, 238, 0.5);
}

body.public-auth .mascot-side {
    isolation: isolate;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(145deg, #68a7ee, #18375d 58%, #18375d);
    border-right: 1px solid rgba(104, 167, 238, 0.35);
}

body.public-auth .mascot-side::before {
    width: 100%;
    height: 100%;
    inset: 0;
    border-radius: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000, transparent 82%);
}

body.public-auth .mascot-side::after {
    width: 270px;
    height: 270px;
    right: -100px;
    bottom: -110px;
    left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    box-shadow:
        0 0 0 38px rgba(255, 255, 255, 0.04),
        0 0 0 76px rgba(255, 255, 255, 0.025);
}

body.public-auth .mascot-badge {
    color: #ffffff;
    background: rgba(24, 55, 93, 0.38);
    border-color: rgba(255, 255, 255, 0.32);
    border-radius: 14px 4px 14px 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.public-auth .mascot-img {
    filter:
        drop-shadow(0 25px 32px rgba(24, 55, 93, 0.32))
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.15));
}

body.public-auth .mascot-title {
    color: #fff;
    text-shadow: 0 5px 28px rgba(24, 55, 93, 0.34);
}

body.public-auth .mascot-text {
    color: rgba(255, 255, 255, 0.8);
}

body.public-auth .mini-feature {
    color: #ffffff;
    background: rgba(24, 55, 93, 0.34);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.public-auth .form-side {
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(104, 167, 238, 0.2), transparent 34%),
        linear-gradient(155deg, #ffffff, rgba(104, 167, 238, 0.08));
}

body.public-auth .form-side::before {
    content: "SECURE ACCESS";
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(24, 55, 93, 0.58);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

body.public-auth .login-card,
body.public-auth .register-card {
    position: relative;
}

body.public-auth .logo {
    width: 68px;
    height: 68px;
}

body.public-auth .title {
    color: var(--future-text);
    text-shadow: none;
}

body.public-auth .subtitle {
    color: var(--future-muted);
}

body.public-auth .subtitle::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin: 15px auto 0;
    background: var(--future-cyan);
    box-shadow: 0 0 14px rgba(104, 167, 238, 0.46);
}

body.public-auth .label {
    color: var(--future-primary);
}

body.public-auth .input {
    color: var(--future-text);
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(24, 55, 93, 0.24);
    border-radius: 13px 4px 13px 4px;
    box-shadow: inset 0 1px 0 #ffffff, 0 8px 20px rgba(24, 55, 93, 0.05);
}

body.public-auth .input::placeholder {
    color: rgba(24, 55, 93, 0.48);
}

body.public-auth .input:hover {
    border-color: rgba(104, 167, 238, 0.62);
}

body.public-auth .input:focus {
    background: #ffffff;
    border-color: var(--future-primary);
    box-shadow: 0 0 0 4px rgba(104, 167, 238, 0.18), 0 10px 24px rgba(24, 55, 93, 0.08);
}

body.public-auth .remember,
body.public-auth .register,
body.public-auth .login-text {
    color: var(--future-muted);
}

body.public-auth .remember input {
    accent-color: var(--future-primary);
}

body.public-auth .forgot,
body.public-auth .register a,
body.public-auth .login-text a,
body.public-auth .back {
    color: var(--future-primary);
}

body.public-auth .forgot:hover,
body.public-auth .register a:hover,
body.public-auth .login-text a:hover,
body.public-auth .back:hover {
    color: var(--future-primary);
    text-shadow: 0 0 14px rgba(104, 167, 238, 0.34);
}

body.public-auth .btn-login,
body.public-auth .btn-register {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--future-primary);
    border: 1px solid var(--future-primary);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 0 15px 34px rgba(24, 55, 93, 0.24), 0 0 22px rgba(104, 167, 238, 0.12);
}

body.public-auth .btn-login:hover,
body.public-auth .btn-register:hover {
    transform: translateY(-2px);
    background: #18375d;
    border-color: #68a7ee;
    box-shadow: 0 18px 38px rgba(24, 55, 93, 0.28), 0 0 0 4px rgba(104, 167, 238, 0.15);
}

body.public-auth .status-message {
    color: #18375d;
    background: rgba(104, 167, 238, 0.13);
    border-color: rgba(104, 167, 238, 0.34);
}

body.public-auth .error {
    color: #18375d;
    font-weight: 700;
}

/* Shared Breeze guest and authenticated shells */
body.system-future {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

.system-guest-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 6vw, 72px) 20px;
}

.system-guest-shell::before {
    content: "";
    position: fixed;
    top: clamp(28px, 7vw, 84px);
    left: clamp(20px, 6vw, 76px);
    width: clamp(90px, 14vw, 180px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #18375d, #68a7ee, transparent);
    box-shadow: 0 0 24px rgba(104, 167, 238, 0.28);
}

.system-guest-stage {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
}

.system-guest-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.system-guest-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #18375d;
    text-decoration: none;
}

.system-guest-logo-frame {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    overflow: hidden;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(104, 167, 238, 0.5);
    border-radius: 20px 6px 20px 6px;
    box-shadow: 0 14px 34px rgba(24, 55, 93, 0.15), 0 0 0 5px rgba(104, 167, 238, 0.09);
}

.system-guest-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 4px 15px 4px;
}

.system-guest-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.system-guest-brand-copy strong {
    color: #18375d;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.system-guest-brand-copy small {
    margin-top: 5px;
    color: rgba(24, 55, 93, 0.66);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.system-guest-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(26px, 6vw, 42px);
    color: #18375d;
    background:
        radial-gradient(circle at 100% 0%, rgba(104, 167, 238, 0.2), transparent 38%),
        rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(104, 167, 238, 0.34);
    border-radius: 30px 8px 30px 8px;
    box-shadow: 0 30px 80px rgba(24, 55, 93, 0.16), inset 0 1px 0 #ffffff;
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.system-guest-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    height: 3px;
    background: linear-gradient(90deg, #18375d, #68a7ee, transparent);
}

.system-guest-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 110px;
    height: 110px;
    pointer-events: none;
    border: 1px solid rgba(104, 167, 238, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(104, 167, 238, 0.04);
}

.system-guest-card > * {
    position: relative;
    z-index: 1;
}

.system-future .text-gray-900,
.system-future .text-gray-800,
.system-future .text-gray-700 {
    color: #18375d;
}

.system-future .text-gray-600,
.system-future .text-gray-500,
.system-future .text-gray-400 {
    color: rgba(24, 55, 93, 0.68);
}

.system-future .text-indigo-700,
.system-future .text-indigo-800,
.system-future .text-green-600 {
    color: #18375d;
}

.system-future .text-red-600 {
    color: #9b1c31;
}

.system-future .border-gray-100,
.system-future .border-gray-200,
.system-future .border-gray-300,
.system-future .border-indigo-400,
.system-future .border-indigo-700 {
    border-color: rgba(104, 167, 238, 0.34);
}

.system-future input:not([type="checkbox"]):not([type="radio"]),
.system-future select,
.system-future textarea {
    color: #18375d;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(24, 55, 93, 0.25);
    border-radius: 13px 4px 13px 4px;
    box-shadow: 0 8px 22px rgba(24, 55, 93, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.system-future input::placeholder,
.system-future textarea::placeholder {
    color: rgba(24, 55, 93, 0.48);
}

.system-future input:not([type="checkbox"]):not([type="radio"]):focus,
.system-future select:focus,
.system-future textarea:focus {
    background: #ffffff;
    border-color: #18375d;
    box-shadow: 0 0 0 4px rgba(104, 167, 238, 0.2), 0 12px 28px rgba(24, 55, 93, 0.08);
}

.system-future input[type="checkbox"],
.system-future input[type="radio"] {
    color: #18375d;
    border-color: rgba(24, 55, 93, 0.34);
    accent-color: #18375d;
}

.system-future button.bg-gray-800,
.system-future a.bg-gray-800 {
    color: #ffffff;
    background: #18375d;
    border-color: #18375d;
    border-radius: 13px 4px 13px 4px;
    box-shadow: 0 12px 26px rgba(24, 55, 93, 0.2);
}

.system-future button.bg-gray-800:hover,
.system-future button.bg-gray-800:focus,
.system-future a.bg-gray-800:hover,
.system-future a.bg-gray-800:focus {
    color: #ffffff;
    background: #18375d;
    border-color: #68a7ee;
    box-shadow: 0 14px 30px rgba(24, 55, 93, 0.24), 0 0 0 4px rgba(104, 167, 238, 0.14);
    transform: translateY(-1px);
}

.system-future button.bg-white,
.system-future a.bg-white {
    color: #18375d;
    background: #ffffff;
    border-color: rgba(104, 167, 238, 0.46);
    border-radius: 13px 4px 13px 4px;
}

.system-guest-card a {
    color: #18375d;
    text-decoration-color: rgba(104, 167, 238, 0.7);
    text-underline-offset: 3px;
}

.system-guest-card a:hover {
    color: #18375d;
    text-decoration-color: #18375d;
}

.system-app-shell {
    position: relative;
    min-height: 100vh;
    background: transparent;
}

.system-app-shell > nav {
    position: sticky;
    top: 0;
    z-index: 40;
    color: #18375d;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(104, 167, 238, 0.28);
    box-shadow: 0 12px 34px rgba(24, 55, 93, 0.09);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.system-app-shell > nav::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: min(32vw, 360px);
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, #18375d, #68a7ee, transparent);
}

.system-app-shell > nav .shrink-0 a {
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    background: #ffffff url("../background/slsu-logo.jpg") center / cover no-repeat;
    border: 1px solid rgba(104, 167, 238, 0.5);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 0 8px 22px rgba(24, 55, 93, 0.14);
}

.system-app-shell > nav .shrink-0 a svg {
    opacity: 0;
}

.system-app-shell > nav a {
    color: #18375d;
}

.system-app-shell > nav a.border-indigo-400 {
    border-color: #68a7ee;
}

.system-app-shell > nav button {
    color: #18375d;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(104, 167, 238, 0.24);
    border-radius: 12px 4px 12px 4px;
}

.system-app-shell > nav button:hover,
.system-app-shell > nav button:focus {
    color: #18375d;
    background: rgba(104, 167, 238, 0.12);
}

.system-app-shell > nav .bg-indigo-50,
.system-app-shell > nav .bg-indigo-100,
.system-app-shell > nav .bg-gray-50,
.system-app-shell > nav .bg-gray-100 {
    background: rgba(104, 167, 238, 0.11);
}

.system-app-shell > nav .ring-1 {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(104, 167, 238, 0.28);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 0 18px 40px rgba(24, 55, 93, 0.14);
}

.system-page-header {
    position: relative;
    color: #18375d;
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(104, 167, 238, 0.22);
    box-shadow: 0 12px 30px rgba(24, 55, 93, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.system-page-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: max(16px, calc((100vw - 80rem) / 2));
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #68a7ee;
    box-shadow: 0 0 0 6px rgba(104, 167, 238, 0.12), 0 0 18px rgba(104, 167, 238, 0.48);
    transform: translateY(-50%);
}

.system-page-header > div {
    padding-left: 40px;
}

.system-page-header h1,
.system-page-header h2,
.system-page-header h3 {
    color: #18375d;
}

.system-page-content {
    position: relative;
    z-index: 1;
}

.system-app .bg-gray-100 {
    background: transparent;
}

.system-app main .bg-white,
.system-app .fixed .bg-white {
    position: relative;
    color: #18375d;
    background:
        radial-gradient(circle at 100% 0%, rgba(104, 167, 238, 0.13), transparent 34%),
        rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(104, 167, 238, 0.26);
    border-radius: 22px 6px 22px 6px;
    box-shadow: 0 20px 50px rgba(24, 55, 93, 0.11);
}

.system-app main .bg-white::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: min(170px, 40%);
    height: 2px;
    background: linear-gradient(90deg, #18375d, #68a7ee, transparent);
}

.system-app .bg-gray-500 {
    background: #18375d;
}

.system-app main h1,
.system-app main h2,
.system-app main h3,
.system-app main h4 {
    color: #18375d;
}

@media (max-width: 640px) {
    .system-guest-shell {
        align-items: flex-start;
        padding: 28px 14px;
    }

    .system-guest-shell::before {
        top: 16px;
        left: 14px;
        width: 74px;
    }

    .system-guest-brand {
        margin: 6px 0 18px;
    }

    .system-guest-logo-frame {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .system-guest-brand-copy strong {
        font-size: 0.82rem;
    }

    .system-guest-brand-copy small {
        font-size: 0.58rem;
    }

    .system-guest-card {
        padding: 26px 20px;
        border-radius: 24px 7px 24px 7px;
    }

    .system-page-header::before {
        left: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.public-welcome .badge-dot,
    body.public-auth .badge-dot {
        animation: publicFuturePulse 2.3s ease-in-out infinite;
    }

    body.public-welcome .floating-card {
        animation: publicFutureFloat 4s ease-in-out infinite;
    }
}

@keyframes publicFuturePulse {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(104, 167, 238, 0.12), 0 0 13px rgba(104, 167, 238, 0.48);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(104, 167, 238, 0.05), 0 0 25px rgba(104, 167, 238, 0.7);
    }
}

@keyframes publicFutureFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 800px) {
    body.public-welcome .navbar {
        position: relative;
    }

    body.public-auth {
        display: block;
        padding: 14px;
    }

    body.public-auth .login-box,
    body.public-auth .register-box {
        width: min(620px, 100%);
        min-height: 0;
        margin: 0 auto;
        grid-template-columns: 1fr;
    }

    body.public-auth .mascot-side {
        min-height: 250px;
        padding: 26px;
        border-right: 0;
        border-bottom: 1px solid rgba(104, 167, 238, 0.26);
    }

    body.public-auth .mascot-img {
        width: min(190px, 48vw);
        max-height: 170px;
        margin-block: 8px 2px;
    }

    body.public-auth .mascot-title {
        font-size: clamp(25px, 7vw, 34px);
    }

    body.public-auth .form-side {
        padding: 38px 28px;
    }
}

@media (max-width: 620px) {
    body.public-welcome .nav-inner {
        min-height: 76px;
    }

    body.public-welcome .brand-logo {
        width: 48px;
        height: 48px;
    }

    body.public-welcome .brand-text h1 {
        font-size: 0.84rem;
    }

    body.public-welcome .brand-text span {
        font-size: 0.62rem;
    }

    body.public-welcome .nav-actions {
        gap: 0.4rem;
    }

    body.public-welcome .nav-actions .btn {
        min-height: 40px;
        padding-inline: 0.8rem;
        font-size: 0.78rem;
    }

    body.public-welcome .hero {
        padding-top: 3.5rem;
    }

    body.public-welcome .image-shell {
        padding: 6px;
        border-radius: 22px 6px 22px 6px;
    }

    body.public-welcome .feature-card,
    body.public-welcome .stat-card {
        border-radius: 16px 5px 16px 5px;
    }

    body.public-auth .mascot-side {
        min-height: 210px;
        padding: 22px 18px;
    }

    body.public-auth .mascot-img {
        display: none;
    }

    body.public-auth .mascot-text {
        margin-top: 8px;
    }

    body.public-auth .mini-features {
        margin-top: 14px;
    }

    body.public-auth .form-side {
        padding: 42px 22px 30px;
    }

    body.public-auth .form-side::before {
        top: 16px;
        right: 18px;
    }

    body.public-auth .login-box,
    body.public-auth .register-box {
        border-radius: 24px 7px 24px 7px;
    }
}

@media (max-width: 420px) {
    body.public-welcome .brand-text span {
        display: none;
    }

    body.public-welcome .nav-actions .btn {
        padding-inline: 0.65rem;
    }

    body.public-welcome .nav-actions .btn-outline {
        display: none;
    }

    body.public-auth .mini-feature {
        padding: 7px 9px;
        font-size: 10px;
    }

    body.public-auth .form-side {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.public-future *,
    body.public-future *::before,
    body.public-future *::after,
    body.system-future *,
    body.system-future *::before,
    body.system-future *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
