:root {
    --roxo: #7c4dff;
    --roxo-profundo: #170722;
    --laranja: #ff9f2f;
    --card-bg: rgba(35, 12, 39, 0.78);
    --card-border: rgba(255, 255, 255, 0.14);
    --texto-suave: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at 50% 48%, rgba(0,0,0,.18), transparent 30%),
        linear-gradient(115deg, #7b49c8 0%, #a35a95 45%, #ff7a1a 100%);
    overflow-x: hidden;
}

body.dark-mode {
    background:
        radial-gradient(circle at 48% 38%, rgba(255,159,47,.12), transparent 28%),
        linear-gradient(135deg, #13051e 0%, #230a33 52%, #17051f 100%);
}

.splash-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 18px;
}

.splash-card {
    width: min(100%, 900px);
    min-height: 430px;
    padding: 68px 58px 42px;
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at 82% 28%, rgba(255,159,47,.12), transparent 24%),
        var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .36);
    backdrop-filter: blur(14px);
    animation: fadeInZoom .55s ease both;
    position: relative;
    overflow: hidden;
}

.splash-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--roxo);
    opacity: .9;
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-area { margin-bottom: 34px; }

.splash-logo {
    display: block;
    width: min(100%, 700px);
    max-height: 170px;
    object-fit: contain;
    margin: 0 auto 24px;
    filter: drop-shadow(0 14px 24px rgba(0,0,0,.28));
}

.system-label {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
}

.logo-area h1 {
    margin: 0;
    color: var(--texto-suave);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 500;
}

.access-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-custom {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 210px;
    min-height: 58px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 999px;
    background: #fff;
    color: #6f42c1;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(0,0,0,.16);
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.btn-custom:hover,
.btn-custom:focus {
    background: var(--roxo);
    color: #fff;
    border-color: var(--roxo);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,0,0,.22);
}

.footer-note {
    margin: 34px 0 0;
    color: var(--texto-suave);
    font-size: .95rem;
}

.theme-switch {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 12px 22px rgba(0,0,0,.20);
    backdrop-filter: blur(10px);
}

.theme-switch:hover { background: rgba(0,0,0,.32); }

@media (max-width: 768px) {
    .splash-card {
        padding: 46px 24px 30px;
        min-height: auto;
        border-radius: 24px;
    }
    .splash-logo {
        max-height: 125px;
        margin-bottom: 20px;
    }
    .access-actions {
        gap: 12px;
    }
    .btn-custom {
        width: min(100%, 260px);
    }
}

@media (max-width: 420px) {
    .splash-wrap { padding-inline: 14px; }
    .splash-card { padding-inline: 18px; }
    .system-label { font-size: 1rem; }
    .footer-note { font-size: .88rem; }
}

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