/* Tela de autenticação — CSS puro (sem build), usa as variáveis de cor do Filament. */
.nf-auth {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: #f6f7fb;
}

/* ---------- Painel da marca ---------- */
.nf-auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #e0e7ff;
    background:
        radial-gradient(circle at 15% 10%, rgba(99, 102, 241, .55), transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(14, 165, 233, .45), transparent 50%),
        linear-gradient(160deg, #1e1b4b 0%, #111827 100%);
}

.nf-auth-brand::after {
    /* grade sutil */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.nf-auth-brand > * { position: relative; z-index: 1; }

.nf-auth-brand-top,
.nf-auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nf-logo-mark { width: 40px; height: 40px; flex-shrink: 0; }

.nf-auth-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: #fff;
}

.nf-auth-brand-body { max-width: 480px; }

.nf-auth-brand-body h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.nf-auth-brand-body p {
    margin: 0 0 32px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #c7d2fe;
}

.nf-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.nf-auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: #e0e7ff;
}

.nf-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(99, 102, 241, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a5b4fc'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 14px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(165, 180, 252, .35);
}

.nf-auth-brand-foot { font-size: .8rem; color: #818cf8; }

/* ---------- Formulário ---------- */
.nf-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.nf-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .12);
    border: 1px solid #eceef5;
}

.nf-auth-card .fi-simple-header { align-items: flex-start; text-align: left; }
.nf-auth-card .fi-simple-header .fi-logo { display: none; }
.nf-auth-card .fi-simple-header-heading { font-size: 1.6rem; letter-spacing: -.02em; }

.nf-auth-help {
    margin: 20px 0 0;
    font-size: .82rem;
    color: #8a90a2;
    text-align: center;
}

.nf-auth-mobile-brand { display: none; margin-bottom: 28px; }
.nf-auth-mobile-brand .nf-auth-brand-name { color: #1e1b4b; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
    .nf-auth { grid-template-columns: 1fr; }
    .nf-auth-brand { display: none; }
    .nf-auth-mobile-brand { display: flex; }
}

@media (max-width: 480px) {
    .nf-auth-main { padding: 24px 16px; justify-content: flex-start; padding-top: 48px; }
    .nf-auth-card { padding: 28px 22px; border-radius: 16px; }
}

/* ---------- Modo escuro ---------- */
.dark .nf-auth { background: #0b0f1a; }
.dark .nf-auth-card { background: #111827; border-color: #1f2937; box-shadow: none; }
.dark .nf-auth-mobile-brand .nf-auth-brand-name { color: #fff; }
.dark .nf-auth-help { color: #6b7280; }
