:root {
    --bg: #07111f;
    --bg-2: #0f172a;
    --card: rgba(15, 23, 42, 0.88);
    --line: rgba(255,255,255,.08);
    --text: #e5eefc;
    --muted: #9fb0d3;
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}
body {
    min-height: 100vh;
    background:
      radial-gradient(circle at top left, rgba(59,130,246,.25), transparent 28%),
      radial-gradient(circle at top right, rgba(139,92,246,.22), transparent 24%),
      linear-gradient(145deg, var(--bg), #020617 60%);
    color: var(--text);
}
.page-shell { padding: 24px; }
.glass-nav, .glass-card {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.glass-nav { border-bottom: 1px solid var(--line); }
.glass-card {
    border-radius: 22px;
    padding: 22px;
}
.card-mini {
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(160deg, rgba(59,130,246,.18), rgba(15,23,42,.9));
    border: 1px solid var(--line);
    height: 100%;
}
.brand-dot {
    width: 11px; height: 11px; display: inline-block; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin-right: 8px;
}
.hero {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(139,92,246,.15), rgba(15,23,42,.85));
}
.hero .content { padding: 50px 34px; }
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line);
}
.form-control, .form-select, .input-group-text, textarea {
    background: rgba(2,6,23,.52) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
}
.form-control::placeholder, textarea::placeholder { color: #8da0c8 !important; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 14px;
}
.btn-outline-light, .btn-outline-info, .btn-outline-warning, .btn-outline-success {
    border-radius: 14px;
}
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }
.sidebar-links a {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.02);
}
.sidebar-links a:hover { background: rgba(59,130,246,.15); }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.info-list li { margin-bottom: 8px; color: var(--muted); }
.alert {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
}
.profile-photo {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.18);
}
.login-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; }
.login-card { max-width: 1050px; width: 100%; }
.badge { padding: 8px 12px; border-radius: 999px; }
.muted { color: var(--muted); }
.small-chart { max-height: 280px; }
@media (max-width: 992px) {
  .page-shell { padding: 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .span-8, .span-4, .span-6, .span-12 { grid-column: auto; }
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-logo-shell,
.hero-logo-shell,
.login-logo-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(59,130,246,.10) 38%, rgba(139,92,246,.22));
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 45px rgba(2,6,23,.35);
}
.brand-logo-shell::before,
.hero-logo-shell::before,
.login-logo-shell::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.14);
    animation: logoPulse 3s ease-in-out infinite;
}
.brand-logo-shell { width: 54px; height: 54px; }
.hero-logo-shell { width: 120px; height: 120px; flex: 0 0 120px; }
.login-logo-shell { width: 118px; height: 118px; }
.brand-logo,
.hero-logo,
.login-logo {
    display: block;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    border-radius: 50%;
    animation: logoFloat 4.5s ease-in-out infinite;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-mini {
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.brand-title {
    color: #fff;
    font-size: 1.15rem;
}
.hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: .45; }
    50% { transform: scale(1.06); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-logo-shell::before,
    .hero-logo-shell::before,
    .login-logo-shell::before,
    .brand-logo,
    .hero-logo,
    .login-logo {
        animation: none;
    }
}
@media (max-width: 768px) {
    .hero-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-logo-shell,
    .login-logo-shell {
        width: 90px;
        height: 90px;
    }
}


.clean-hero {
    background: linear-gradient(135deg, rgba(8, 20, 45, .96), rgba(10, 14, 34, .98));
}
.hero-left {
    padding: 54px 42px;
}
.hero-brand-clean {
    align-items: center;
}
.hero-logo-shell-clean {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
}
.hero-title {
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.06;
    font-weight: 800;
    color: #fff;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.feature-card {
    min-height: 100%;
}
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(139,92,246,.2));
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 12px;
    font-size: 1.2rem;
}
.hero-points {
    display: grid;
    gap: 10px;
    color: var(--muted);
}
.hero-points i {
    color: #60a5fa;
    margin-right: 8px;
}
.login-panel {
    padding: 38px 34px;
    background: linear-gradient(180deg, rgba(7,17,31,.92), rgba(8,12,28,.98));
    border-left: 1px solid var(--line);
}
.profile-selector {
    display: grid;
    gap: 12px;
}
.profile-option input {
    display: none;
}
.profile-option-box {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-areas:
      'icon title'
      'icon desc';
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    transition: .2s ease;
    cursor: pointer;
}
.profile-option-box i {
    grid-area: icon;
    font-size: 1.2rem;
    color: #93c5fd;
}
.profile-option-box strong {
    grid-area: title;
    color: #fff;
}
.profile-option-box small {
    grid-area: desc;
    color: var(--muted);
}
.profile-option input:checked + .profile-option-box {
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
    border-color: rgba(96,165,250,.7);
    box-shadow: 0 0 0 2px rgba(96,165,250,.15);
    transform: translateY(-1px);
}
.profile-option-box:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.18);
}
.login-support {
    font-size: .95rem;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 18px;
}
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 992px) {
    .hero-left,
    .login-panel {
        padding: 28px 22px;
    }
    .login-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 768px) {
    .hero-logo-shell-clean {
        width: 105px;
        height: 105px;
        flex-basis: 105px;
    }
    .hero-brand-clean {
        align-items: flex-start;
    }
}


html, body { overflow-x: hidden; }
body.home-page .page-shell {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 28px;
}
body.home-page .glass-nav {
    background: rgba(4, 11, 25, 0.92);
}
body.home-page .navbar-brand {
    max-width: none;
}
body.home-page .brand-logo-shell {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}
body.home-page .brand-logo {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
}
body.home-page .brand-title {
    font-size: 1rem;
}
body.home-page .brand-mini {
    font-size: .62rem;
}
.login-wrap {
    width: 100%;
}
.login-card {
    max-width: 1180px;
    margin: 0 auto;
}
.clean-hero {
    border-radius: 30px;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, rgba(59,130,246,.22), transparent 26%),
      radial-gradient(circle at bottom right, rgba(139,92,246,.18), transparent 22%),
      linear-gradient(135deg, rgba(6,16,36,.98), rgba(10,12,26,.99));
}
.hero-left {
    padding: 56px 48px;
}
.hero-brand-clean {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 22px;
    align-items: center;
}
.hero-logo-shell-clean {
    width: 130px;
    height: 130px;
    flex: 0 0 130px;
}
.hero-title {
    margin: 0;
    max-width: 700px;
}
.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.login-panel {
    padding: 42px 34px;
    background: linear-gradient(180deg, rgba(9, 18, 40, .96), rgba(9, 12, 28, .99));
}
.login-panel .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}
.profile-selector {
    grid-template-columns: 1fr;
}
.profile-option-box {
    min-height: 78px;
}
.login-support {
    display: grid;
    gap: 6px;
}
.auth-card-title {
    font-size: 1.65rem;
}
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: #8fd3ff;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 999px;
    padding: 8px 14px;
}
.home-kicker i { color: #38bdf8; }
@media (max-width: 992px) {
    body.home-page .page-shell {
        align-items: flex-start;
    }
    .clean-hero {
        border-radius: 24px;
    }
    .hero-left {
        padding: 34px 24px;
    }
    .hero-brand-clean {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }
    .hero-logo-shell-clean {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }
}
@media (max-width: 768px) {
    .hero-brand-clean {
        grid-template-columns: 1fr;
    }
    .hero-logo-shell-clean {
        width: 96px;
        height: 96px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    body.home-page .container-fluid.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}


html[data-theme='light'] {
    --bg: #eef4ff;
    --bg-2: #ffffff;
    --card: rgba(255, 255, 255, 0.96);
    --line: rgba(15, 23, 42, .10);
    --text: #0f172a;
    --muted: #475569;
}
html[data-theme='light'] body {
    background:
      radial-gradient(circle at top left, rgba(59,130,246,.12), transparent 28%),
      radial-gradient(circle at top right, rgba(139,92,246,.10), transparent 24%),
      linear-gradient(145deg, #f8fbff, #eaf1ff 60%);
}
html[data-theme='light'] .glass-nav,
html[data-theme='light'] .glass-card,
html[data-theme='light'] .hero,
html[data-theme='light'] .clean-hero,
html[data-theme='light'] .login-panel,
html[data-theme='light'] .card-mini,
html[data-theme='light'] .sidebar-links a {
    background: rgba(255,255,255,.92);
    color: var(--text);
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
}
html[data-theme='light'] .brand-title,
html[data-theme='light'] .hero-title,
html[data-theme='light'] .auth-card-title,
html[data-theme='light'] h1,
html[data-theme='light'] h2,
html[data-theme='light'] h3,
html[data-theme='light'] h4,
html[data-theme='light'] h5,
html[data-theme='light'] h6,
html[data-theme='light'] label,
html[data-theme='light'] .table,
html[data-theme='light'] .table * {
    color: var(--text) !important;
}
html[data-theme='light'] .muted,
html[data-theme='light'] .brand-mini,
html[data-theme='light'] .hero-points,
html[data-theme='light'] .info-list li,
html[data-theme='light'] .nav-link,
html[data-theme='light'] .navbar {
    color: var(--muted) !important;
}
html[data-theme='light'] .form-control,
html[data-theme='light'] .form-select,
html[data-theme='light'] .input-group-text,
html[data-theme='light'] textarea {
    background: #f8fafc !important;
    color: var(--text) !important;
    border: 1px solid rgba(15,23,42,.12) !important;
}
html[data-theme='light'] .form-control::placeholder,
html[data-theme='light'] textarea::placeholder {
    color: #64748b !important;
}
html[data-theme='light'] .btn-outline-light {
    color: #0f172a;
    border-color: rgba(15,23,42,.16);
}
html[data-theme='light'] .btn-outline-light:hover {
    background: rgba(15,23,42,.06);
}
.home-page .brand-wrap-home .brand-copy {
    line-height: 1.1;
}
.home-page .brand-wrap-home .brand-title {
    font-size: 1rem;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    transition: .2s ease;
}
.theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.10);
}
html[data-theme='light'] .theme-toggle {
    border-color: rgba(15,23,42,.10);
    background: rgba(15,23,42,.04);
}
.theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}
@media (max-width: 991px) {
    .theme-toggle-text { display: none; }
}


/* ===== Ajustes visuais da home/login ===== */
.login-layout-row {
    min-height: 680px;
}
.single-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.single-login-logo {
    width: min(100%, 430px);
    max-width: 430px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hero-description {
    max-width: 640px;
}
.login-panel {
    position: relative;
    z-index: 2;
}
.login-panel .form-label,
.login-panel .muted,
.profile-option-box strong,
.profile-option-box small {
    text-shadow: none;
}
.profile-option-box {
    background: rgba(255,255,255,.06);
}
.profile-option-box strong {
    color: #f8fbff;
    font-size: .98rem;
}
.profile-option-box small {
    color: #d7e3ff;
    font-size: .85rem;
}
.login-panel .form-label {
    color: #f8fbff;
    font-size: .95rem;
}
.login-panel .muted,
.login-support {
    color: #cad8f5;
}
.login-support strong {
    color: #ffffff;
}

html[data-theme='light'] .home-kicker {
    color: #0f172a;
    background: rgba(37,99,235,.10);
    border-color: rgba(37,99,235,.16);
}
html[data-theme='light'] .home-kicker i {
    color: #2563eb;
}
html[data-theme='light'] .hero-title,
html[data-theme='light'] .feature-card h5,
html[data-theme='light'] .profile-option-box strong,
html[data-theme='light'] .login-panel .form-label,
html[data-theme='light'] .login-support strong,
html[data-theme='light'] .auth-card-title {
    color: #0f172a !important;
}
html[data-theme='light'] .hero-description,
html[data-theme='light'] .login-panel .muted,
html[data-theme='light'] .feature-card .muted,
html[data-theme='light'] .hero-points,
html[data-theme='light'] .login-support,
html[data-theme='light'] .profile-option-box small {
    color: #475569 !important;
}
html[data-theme='light'] .profile-option-box {
    background: #ffffff;
    border-color: rgba(15,23,42,.10);
}
html[data-theme='light'] .profile-option input:checked + .profile-option-box {
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.10));
    border-color: rgba(37,99,235,.45);
    box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}
html[data-theme='light'] .login-panel,
html[data-theme='light'] .clean-hero {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.98));
}
html[data-theme='light'] .form-control,
html[data-theme='light'] .form-select,
html[data-theme='light'] textarea {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(15,23,42,.12) !important;
}
html[data-theme='light'] .form-control::placeholder,
html[data-theme='light'] textarea::placeholder {
    color: #64748b !important;
}

@media (max-width: 992px) {
    .login-layout-row {
        min-height: auto;
    }
    .single-login-logo {
        max-width: 320px;
    }
}
@media (max-width: 768px) {
    .single-login-logo {
        max-width: 250px;
    }
    .hero-title {
        font-size: 1.9rem;
    }
}
