/* B2SW access: apresentação das páginas públicas, sem alterar o painel interno. */

.flex.min-h-screen.items-center.justify-center.bg-background.p-6{
  color-scheme:light;
  color:#1c1a16;
  background-color:#faf9f6;
}

/* O formulário original permanece responsável por senha, validação e sessão. */
.flex.min-h-screen.items-center.justify-center.bg-background.p-6{
  display:flex;min-height:100dvh;padding:32px 20px;align-items:center;justify-content:center;
}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6>.w-full.max-w-sm{
  width:100%;max-width:400px;
  padding:32px 30px;background:#ffffff;border:1px solid #e7e3da;border-radius:18px;
  box-shadow:0 12px 40px -24px rgba(28,26,22,.24);
}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 [data-testid="logo-da-fachada"]{display:block;max-height:50px;max-width:144px}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 [data-testid="logo-escuro-da-fachada"]{display:none}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 h1{font-size:22px;font-weight:600;letter-spacing:-.5px;line-height:1.3}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 h1+p{color:#5d594f;font-size:13px}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 label{color:#39362f;font-size:14px;font-weight:500}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 input:not([type="checkbox"]){
  min-height:48px;border-radius:11px;border-color:#d2cdbf;background:#ffffff;color:#1c1a16;
  padding:12px 14px;font-family:inherit;font-size:14px;box-shadow:none;
}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 input:focus-visible{
  outline:2px solid #0e7490;outline-offset:2px;border-color:#0e7490;
}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 input#password{padding-right:3rem}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 input[aria-invalid="true"]{border-color:#b91c1c}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 button[type="submit"]{
  min-height:48px;border-radius:11px;background:#0e7490;color:#ffffff;
  font-family:inherit;font-size:14px;font-weight:600;box-shadow:none;
}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 button[type="submit"]:hover{background:#0c5a6e}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 button:focus-visible,
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 a:focus-visible{outline:2px solid #0e7490;outline-offset:4px}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 button[aria-label]{color:#5d594f}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 .text-muted-foreground{color:#5d594f}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 a{color:#0e7490;text-underline-offset:4px}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 a:hover{color:#0c5a6e}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 .border{border-color:#d2cdbf}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 .h-px{background:#e7e3da}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 .bg-background:not(.min-h-screen){background:#ffffff}

@media(max-width:480px){
  .flex.min-h-screen.items-center.justify-center.bg-background.p-6 input:not([type="checkbox"]){font-size:16px}
  .flex.min-h-screen.items-center.justify-center.bg-background.p-6{padding:24px 16px}
  .flex.min-h-screen.items-center.justify-center.bg-background.p-6>.w-full.max-w-sm{padding:30px 24px;border-radius:18px}
}

.flex.min-h-screen.items-center.justify-center.bg-background.p-6 button:not([type="submit"]){color:#39362f}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 button:not([type="submit"]):hover{background:#f5f3ee}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 .text-destructive,
.flex.min-h-screen.items-center.justify-center.bg-background.p-6 .text-error-fg{color:#b91c1c}

/* No login, título e subtítulo identificam o acesso sem repetir o logo. */
.flex.min-h-screen.items-center.justify-center.bg-background.p-6:has(form #email):has(form #password):not(:has(form #password_confirm))>.w-full.max-w-sm>div:has([data-testid="logo-da-fachada"]){display:none;margin-block-end:0}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6:has(form #email):has(form #password):not(:has(form #password_confirm)) form{margin-block-end:0}

/* shortcut: Google e recuperação sem configuração; reexibir ao ativar Google/SMTP. */
.flex.min-h-screen.items-center.justify-center.bg-background.p-6:has(form #email):has(form #password):not(:has(form #password_confirm)) div.space-y-4:has(>button[type="button"]){display:none}
.flex.min-h-screen.items-center.justify-center.bg-background.p-6:has(form #email):has(form #password):not(:has(form #password_confirm)) p:has(>a[href="/login/forgot"]){display:none}
/* Convites continuam com seu link específico; o cadastro público está fechado. */
.flex.min-h-screen.items-center.justify-center.bg-background.p-6:has(form #email):has(form #password):not(:has(form #password_confirm)) .space-y-2:has(a[href="/signup"]){display:none}
