/* Tema claro (default) */
:root {
    /* Cor primária do tema */
    --tblr-primary: #cc3b00;
    --tblr-primary-rgb: 204, 59, 0;
    --tblr-font-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Cor base de texto (claro) */
    --tblr-body-color: #241f2d;
    --tblr-body-color-rgb: 36, 31, 45;

    /* Links */
    --tblr-link-color: var(--tblr-primary);
    --tblr-link-hover-color: #a53000;
    --tblr-link-hover-color-rgb: 165, 48, 0;
    --tblr-link-color-rgb: var(--tblr-primary);

    /* Botões primários */
    --tblr-btn-primary-bg: var(--tblr-primary);
    --tblr-btn-primary-border-color: var(--tblr-primary);

/* Badges primários */
--tblr-badge-bg: var(--tblr-primary);

    /* Navbar */
    --tblr-navbar-active-border-color: var(--tblr-primary);
    --tblr-navbar-active-bg: rgba(204, 59, 0, 0.08);
}

/* Badge do sino de notificações */
header.top ul.navbar-nav .bp-bell-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem !important;
}

header.top ul.navbar-nav .bp-bell-badge {
    position: absolute!important;
    top: 1px!important;
    right: 15px!important;
    transform: none!important;
    padding: 2px 5px!important;
    font-size: 10px!important;
    line-height: 1!important;
    min-width: 16px!important;
    text-align: center!important;
    border-radius: 50%!important;
}

/* Tema escuro (Dark e System->Dark no Backpack usam data-bs-theme="dark") */
html[data-theme="dark"],
html[data-bs-theme="dark"] {
    /* Primária mais clara no fundo escuro */
    --tblr-primary: #ff9966;
    --tblr-primary-rgb: 255, 153, 102;

    /* Cor base de texto (dark: quase branca pra dar contraste) */
    --tblr-body-color: #f5f5f7;
    --tblr-body-color-rgb: 245, 245, 247;

    --tblr-link-color: var(--tblr-primary);
    --tblr-link-hover-color: #ffb899;
    --tblr-link-color-rgb: var(--tblr-primary);

    --tblr-btn-primary-bg: var(--tblr-primary);
    --tblr-btn-primary-border-color: var(--tblr-primary);
}

/* Foco dos inputs flat */
.input-group-flat:focus-within {
    box-shadow: 0 0 transparent, 0 0 0 0.25rem rgba(var(--tblr-primary-rgb), .25);
}

.input-group-flat:focus-within .form-control,
.input-group-flat:focus-within .input-group-text {
    border-color: rgba(var(--tblr-primary-rgb), 0.5) !important;
}

/* -------------------------------------------------------------------------- */
/* Premium auth (Backpack - login illustration)                                */
/* -------------------------------------------------------------------------- */

.bp-auth-premium {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    background: var(--tblr-bg-surface, #fff);
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .bp-auth-premium {
        grid-template-columns: 1fr;
    }
}

.bp-auth-premium__hero {
    position: relative;
    padding: 4rem 4.5rem;
    align-items: flex-start;
    color: #fff;
    background:
        radial-gradient(55rem 32rem at 15% 40%, rgba(255, 255, 255, 0.22), transparent 55%),
        radial-gradient(40rem 28rem at 70% 65%, rgba(0, 0, 0, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.22)),
        var(--tblr-primary);
    overflow: visible;
    z-index: 2;
}

.bp-auth-premium__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%221200%22%20height%3D%22800%22%20viewBox%3D%220%200%201200%20800%22%20fill%3D%22none%22%3E%3Cg%20opacity%3D%220.55%22%3E%3Cpath%20d%3D%22M-40%20140%20C%20180%2080%2C%20380%2070%2C%20610%20110%20C%20830%20150%2C%201000%20240%2C%201240%20190%22%20stroke%3D%22rgba(255%2C255%2C255%2C0.42)%22%20stroke-width%3D%221.25%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M-60%20240%20C%20160%20170%2C%20370%20160%2C%20600%20210%20C%20840%20260%2C%201000%20360%2C%201260%20300%22%20stroke%3D%22rgba(255%2C255%2C255%2C0.34)%22%20stroke-width%3D%221.15%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M-80%20360%20C%20150%20280%2C%20370%20270%2C%20610%20330%20C%20860%20390%2C%201010%20510%2C%201280%20440%22%20stroke%3D%22rgba(255%2C255%2C255%2C0.28)%22%20stroke-width%3D%221.05%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M-100%20490%20C%20140%20410%2C%20380%20400%2C%20630%20470%20C%20880%20540%2C%201040%20680%2C%201300%20600%22%20stroke%3D%22rgba(255%2C255%2C255%2C0.22)%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M-120%20630%20C%20120%20560%2C%20380%20550%2C%20660%20610%20C%20920%20670%2C%201060%20780%2C%201320%20720%22%20stroke%3D%22rgba(255%2C255%2C255%2C0.18)%22%20stroke-width%3D%220.9%22%20stroke-linecap%3D%22round%22/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.bp-auth-premium__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(65% 65% at 25% 45%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.22));
    pointer-events: none;
    z-index: 0;
}

.bp-auth-premium__hero-figure {
    position: absolute;
    left: auto;
    right: -6.25rem;
    bottom: -5.25rem;
    height: min(820px, 92vh);
    width: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    /* opacity: 0.96; */
    filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.30)) saturate(1.02) contrast(1.03);
    transform: scaleX(-1);
    /* -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%); */
    /* mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%); */
}

@media (max-width: 1199.98px) {
    .bp-auth-premium__hero-figure {
        right: -8.25rem;
        bottom: -6rem;
        height: min(760px, 90vh);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bp-auth-premium__hero-figure {
        right: -1.25rem;
        bottom: -5.25rem;
        height: min(620px, 88vh);
    }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
    .bp-auth-premium__hero-figure {
        right: -2.25rem;
        bottom: -5.25rem;
        height: min(700px, 90vh);
    }
}

.bp-auth-premium__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    padding-top: 0.75rem;
}

html[data-bs-theme="dark"] .bp-auth-premium__hero::before {
    opacity: 0.25;
}

.bp-auth-premium__title {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-size: clamp(2rem, 2.9vw, 2.8rem);
}

.bp-auth-premium__type {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1em;
}

.bp-auth-premium__cursor {
    display: inline-block;
    width: 0.55ch;
    height: 1.05em;
    transform: translateY(0.12em);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    animation: bp-auth-premium-caret 1.1s steps(2, end) infinite;
}

@keyframes bp-auth-premium-caret {
    0%,
    45% {
        opacity: 1;
    }
    46%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-auth-premium__cursor {
        animation: none;
        opacity: 0;
    }
}

.bp-auth-premium__subtitle {
    margin: 0 0 1.75rem 0;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
    font-size: 0.95rem;
}

.bp-auth-premium__chips {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 28rem;
}

.bp-auth-premium__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.bp-auth-premium__hero-footer {
    margin-top: 2.25rem;
    font-size: 0.85rem;
    color: rgba(245, 247, 255, 0.6);
}

.bp-auth-premium__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(245, 245, 247, 1), rgba(255, 255, 255, 1));
    position: relative;
    z-index: 1;
}

html[data-bs-theme="dark"] .bp-auth-premium__panel {
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.35), rgba(10, 15, 26, 1));
}

.bp-auth-premium__panel-inner {
    width: min(460px, 100%);
}

.bp-auth-premium__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.bp-auth-premium__card {
    position: relative;
    z-index: 4;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

html[data-bs-theme="dark"] .bp-auth-premium__card {
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.bp-auth-premium__form-header {
    text-align: center;
    margin: 0 0 1.25rem 0;
}

.bp-auth-premium__form-header .h2 {
    letter-spacing: -0.02em;
}

.bp-auth-premium .form-control:focus {
    box-shadow: 0 0 transparent, 0 0 0 0.25rem rgba(var(--tblr-primary-rgb), 0.18);
}
