/* Estilos próprios do painel CROL (o CSS do Filament vem pré-compilado). */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&display=swap');

/* ---------- Estoque zerado nas tabelas ---------- */
.fi-ta-row.crol-sem-estoque { background-color: rgb(239 68 68 / 0.10); }
.fi-ta-row.crol-sem-estoque:hover { background-color: rgb(239 68 68 / 0.16); }
.dark .fi-ta-row.crol-sem-estoque { background-color: rgb(239 68 68 / 0.14); }
.dark .fi-ta-row.crol-sem-estoque:hover { background-color: rgb(239 68 68 / 0.20); }

/* ---------- Login ----------
   O rodapé .crol-login-footer só existe na página de login e serve de gancho. */
.fi-simple-layout:has(.crol-login-footer) {
    min-height: 100dvh;
    background: radial-gradient(110% 70% at 50% 0%, #f5e1e8 0%, #fcf6f4 62%);
}

.fi-simple-layout:has(.crol-login-footer) .fi-simple-main-ctn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px 16px;
}

.fi-simple-layout:has(.crol-login-footer) .fi-simple-main {
    width: 100%;
    max-width: 440px;
    margin: 0;
    padding: 44px 40px 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 70px -32px rgb(157 75 105 / 0.45), 0 0 0 1px #ead6dd;
    animation: crol-rise .7s cubic-bezier(.22, .8, .24, 1) both;
}

.fi-simple-layout:has(.crol-login-footer) .fi-logo {
    height: 3.6rem !important;
    margin-inline: auto;
}

.fi-simple-layout:has(.crol-login-footer) .fi-simple-header-heading {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.01em;
    color: #3a2830;
}

.fi-simple-layout:has(.crol-login-footer) .fi-simple-header-subheading {
    color: #876d78;
}

.fi-simple-layout:has(.crol-login-footer) .fi-btn {
    border-radius: 999px;
    padding-block: .75rem;
    letter-spacing: .03em;
}

.fi-simple-layout:has(.crol-login-footer) .fi-btn.fi-color-primary {
    background: #9d4b69;
    color: #fff;
    box-shadow: 0 10px 24px -12px rgb(157 75 105 / 0.8);
    transition: background-color .2s, transform .2s;
}

.fi-simple-layout:has(.crol-login-footer) .fi-btn.fi-color-primary:hover {
    background: #833e59;
    transform: translateY(-1px);
}

.fi-simple-layout:has(.crol-login-footer) .fi-btn.fi-color-primary .fi-icon,
.fi-simple-layout:has(.crol-login-footer) .fi-btn.fi-color-primary .fi-loading-indicator {
    color: #fff;
}

.crol-login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1e3e8;
    font-size: 12px;
    color: #876d78;
}

.crol-login-footer a { color: #9d4b69; font-weight: 500; }
.crol-login-footer a:hover { text-decoration: underline; }

/* Tema escuro */
.dark .fi-simple-layout:has(.crol-login-footer) {
    background: radial-gradient(110% 70% at 50% 0%, #3a2430 0%, #17110f 62%);
}
.dark .fi-simple-layout:has(.crol-login-footer) .fi-simple-main {
    background: #231a1e;
    box-shadow: 0 30px 70px -32px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08);
}
.dark .fi-simple-layout:has(.crol-login-footer) .fi-simple-header-heading { color: #f6ecef; }
.dark .fi-simple-layout:has(.crol-login-footer) .fi-simple-header-subheading,
.dark .crol-login-footer { color: #c4a9b4; }
.dark .crol-login-footer { border-top-color: rgb(255 255 255 / 0.08); }
.dark .crol-login-footer a { color: #e6a5bd; }

@media (max-width: 640px) {
    .fi-simple-layout:has(.crol-login-footer) .fi-simple-main { padding: 36px 24px 26px; }
}

@keyframes crol-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fi-simple-layout:has(.crol-login-footer) .fi-simple-main { animation: none; }
}
