/* Alluzzi — Cadastro e recuperação com linguagem do login aprovado. */
html:has(.auth-screen){background:#150C10}
body:has(.auth-screen){background:#150C10;color:#F5F1EE}
.auth-screen{background:linear-gradient(137deg,#1A1014,#37161F 48%,#1B0C11);font-family:'Alluzzi Overpass',Overpass,Arial,sans-serif}
.auth-hero{background:linear-gradient(135deg,#160B10 0%,#50212B 70%,#2B151B);height:auto;min-height:265px;max-height:none}
.auth-hero>img{filter:sepia(.2) saturate(.6) brightness(.36);opacity:.65}
.auth-hero:after{background:linear-gradient(to bottom,rgba(26,8,14,.2) 0%,rgba(28,7,13,.52) 45%,#1C0E14 100%)}
.auth-hero .brand{top:24px;left:25px;letter-spacing:normal}
.auth-hero .brand .alluzzi-brand-logo{width:158px;max-height:45px}
.auth-copy{bottom:25px;left:25px;right:25px}
.auth-copy:before{content:'SEU NOVO JEITO DE CONSUMIR';color:#D4B0B8;letter-spacing:.15em}
.auth-copy h1{font-size:clamp(21px,4vw,28px);font-weight:700;letter-spacing:-.028em;color:#FFF6F4}
.auth-copy p{color:#DAC8CA;font-size:12px}
.auth-panel{background:#1C0E14;color:#F5F1EE;padding:30px 26px 35px;min-height:auto}
.auth-panel h2{color:#F5F1EE;font-size:22px;letter-spacing:-.025em}
.auth-panel>p{color:#BCA7AE;font-size:12px}
.auth-panel .input,.auth-panel .textarea,.auth-panel .select{border-radius:13px;background:#311E27;color:#F5F1EE;border-color:#624551}
.auth-panel .input:focus{border-color:#D8AAB7;box-shadow:0 0 0 3px rgba(186,97,117,.19)}
.auth-panel .label{color:#D3BCC3}
.auth-panel .btn.accent{border-radius:13px;background:linear-gradient(95deg,#571526,#78283C);border:1px solid #965163;box-shadow:0 7px 25px rgba(0,0,0,.2)}
.auth-panel a{color:#E9D4D9}
.auth-panel .auth-check{color:#CFBBC1}
.auth-screen .auth-switch{background:rgba(42,17,26,.45);border-color:#B88E99}
.password-recovery-screen{min-height:100svh;background:radial-gradient(ellipse 45% 40% at 50% 5%,#5A2635,#160B10 85%)!important}
.password-recovery-panel{display:flex;flex-direction:column;min-height:100svh!important;background:transparent!important;padding:46px 24px 36px!important}
.recovery-brand{display:block;margin:0 auto 48px!important;max-width:176px}
.recovery-brand .alluzzi-brand-logo{width:176px;max-height:64px}
.recovery-brand .alluzzi-brand-logo-light{display:none}
.recovery-brand .alluzzi-brand-logo-dark{display:block}
.password-recovery-content{border:1px solid rgba(245,241,238,.13);border-radius:24px;background:rgba(46,25,33,.78);padding:28px 24px;box-shadow:0 24px 60px rgba(0,0,0,.24);backdrop-filter:blur(24px)}
.password-recovery-content h2{font-size:23px}
.recovery-kicker{color:#D8B3BE}
.recovery-request-form .input{background:#2D1C23!important;border:1px solid #674650!important;color:#F5F1EE!important}
.recovery-request-form .input:focus{border-color:#CF94A4!important}
.recovery-request-form .btn,.recovery-login-button{border-radius:13px!important;background:linear-gradient(95deg,#571526,#78283C)!important;color:#FFF!important;border-color:#965163!important}
.recovery-success-icon{background:#184733;color:#85E7B3}
@media(min-width:800px){.auth-screen{min-height:100vh;grid-template-columns:minmax(0,1fr) minmax(380px,470px)}.auth-hero{min-height:100vh}.auth-panel{justify-content:center;min-height:100vh;padding:55px 50px}}
@media(max-width:450px){.auth-hero{min-height:235px}.auth-panel{padding:27px 19px 35px}.password-recovery-panel{padding:42px 17px 30px!important}.password-recovery-content{padding:25px 19px}.recovery-brand{margin-bottom:42px!important}}

/* ===========================================================
   ALLUZZI v1.34 — CADASTRO /app/register
   Referência: cadastro Lovable + padrão consolidado (cantos 6px).
   Escopo restrito a .auth-register-screen: não muda login,
   recuperação de senha nem validação/envio do formulário PHP.
   =========================================================== */
html:has(.auth-register-screen),
body:has(.auth-register-screen){
  background:#12080A!important;
  color:#F5F1EE;
  color-scheme:dark;
}
.auth-screen.auth-register-screen{
  --reg-bg:#12080A;
  --reg-panel:rgba(33,16,20,.94);
  --reg-field:#241419;
  --reg-border:#4D333B;
  --reg-text:#F5F1EE;
  --reg-muted:#C8B7BC;
  --reg-accent:#682033;
  display:flex!important;
  flex-direction:column!important;
  width:min(100%,520px)!important;
  max-width:520px!important;
  min-height:100vh!important;
  min-height:100svh!important;
  height:auto!important;
  margin:0 auto!important;
  padding:25px 20px 30px!important;
  overflow:visible!important;
  background:
    radial-gradient(ellipse 180px 180px at 105% 3%,rgba(85,22,39,.23),transparent 88%),
    radial-gradient(ellipse 220px 180px at -15% 99%,rgba(85,22,39,.23),transparent 88%),
    var(--reg-bg)!important;
  box-shadow:none!important;
  border:0!important;
  box-sizing:border-box!important;
  color:var(--reg-text)!important;
  font-family:'Alluzzi Overpass',Overpass,'Segoe UI',Arial,sans-serif!important;
}
.auth-register-screen *,
.auth-register-screen *::before,
.auth-register-screen *::after{box-sizing:border-box}
.auth-register-screen .auth-hero{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  background:none!important;
}
.auth-register-screen .auth-hero>img,
.auth-register-screen .auth-hero::after{display:none!important}
.auth-register-screen .auth-hero .brand{
  position:absolute!important;
  top:0!important;
  left:0!important;
  z-index:3!important;
  display:inline-flex!important;
  width:156px!important;
  min-height:37px!important;
  padding:0!important;
  color:#F5F1EE!important;
  text-decoration:none!important;
  letter-spacing:normal!important;
}
.auth-register-screen .auth-hero .brand .alluzzi-brand-logo{
  display:block!important;
  width:145px!important;
  max-width:100%!important;
  height:auto!important;
  max-height:38px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
/* Cadastro sempre com o logotipo claro: sem letra vinho invisível. */
.auth-register-screen .auth-hero .brand .alluzzi-brand-logo-light{display:none!important}
.auth-register-screen .auth-hero .brand .alluzzi-brand-logo-dark{display:block!important}
.auth-register-screen .auth-switch{
  position:absolute!important;
  top:0!important;
  right:0!important;
  z-index:3!important;
  min-height:34px!important;
  padding:8px 14px!important;
  border:1px solid rgba(245,241,238,.32)!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#F5F1EE!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:500!important;
  letter-spacing:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.auth-register-screen .auth-switch:hover,
.auth-register-screen .auth-switch:focus-visible{
  background:#2A181D!important;
  border-color:#AE8993!important;
}
.auth-register-screen .auth-copy{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  margin:0!important;
  padding:90px 2px 0!important;
  color:var(--reg-text)!important;
}
.auth-register-screen .auth-copy::before{
  content:'SEU NOVO JEITO DE CONSUMIR'!important;
  display:block!important;
  margin:0 0 8px!important;
  color:#B8A3A9!important;
  font-size:10px!important;
  font-weight:500!important;
  letter-spacing:.20em!important;
  line-height:1.4!important;
}
.auth-register-screen .auth-copy h1{
  color:var(--reg-text)!important;
  margin:0!important;
  font-size:clamp(25px,7.2vw,31px)!important;
  font-weight:300!important;
  line-height:1.17!important;
  letter-spacing:-.032em!important;
  text-wrap:balance;
}
.auth-register-screen .auth-copy p{
  margin:9px 0 0!important;
  max-width:440px!important;
  color:var(--reg-muted)!important;
  font-size:13px!important;
  font-weight:400!important;
  line-height:1.55!important;
}
.auth-register-screen .auth-panel{
  display:flex!important;
  flex-direction:column!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:25px 0 0!important;
  padding:22px 18px 20px!important;
  border:1px solid var(--reg-border)!important;
  border-radius:6px!important;
  background:var(--reg-panel)!important;
  color:var(--reg-text)!important;
  box-shadow:none!important;
  justify-content:flex-start!important;
}
.auth-register-screen .auth-panel h2{
  margin:0!important;
  color:var(--reg-text)!important;
  font-size:22px!important;
  line-height:1.25!important;
  letter-spacing:-.02em!important;
  font-weight:400!important;
}
.auth-register-screen .auth-panel>p{
  margin:5px 0 18px!important;
  color:var(--reg-muted)!important;
  font-size:12px!important;
  line-height:1.5!important;
}
.auth-register-screen .auth-panel form{
  display:block!important;
  width:100%!important;
  margin:0!important;
}
.auth-register-screen .auth-panel form>.label{
  display:block!important;
  margin:0 0 7px!important;
  color:#BDA7AF!important;
  font-size:10px!important;
  line-height:1.4!important;
  font-weight:600!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}
.auth-register-screen .auth-panel .input{
  display:block!important;
  width:100%!important;
  min-height:46px!important;
  height:46px!important;
  padding:0 14px!important;
  background:var(--reg-field)!important;
  border:1px solid var(--reg-border)!important;
  border-radius:6px!important;
  color:var(--reg-text)!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:400!important;
  box-shadow:none!important;
  outline:0!important;
  -webkit-appearance:none;
  appearance:none;
}
.auth-register-screen .auth-panel .input:focus{
  border-color:#B58492!important;
  box-shadow:0 0 0 2px rgba(181,132,146,.15)!important;
}
.auth-register-screen .auth-panel .input::placeholder{color:#BAA5AB!important;opacity:1!important}
.auth-register-screen .password-field{position:relative!important}
.auth-register-screen .password-field .input{padding-right:53px!important}
.auth-register-screen .password-toggle{
  position:absolute!important;
  right:7px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:34px!important;
  padding:0!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#C5B0B6!important;
}
.auth-register-screen .password-toggle:hover,
.auth-register-screen .password-toggle:focus-visible{background:#39232C!important;color:#F5F1EE!important}
.auth-register-screen .password-rules{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin:10px 0 0!important;
}
.auth-register-screen .password-rules span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:5px 8px!important;
  background:#2B1A20!important;
  border:1px solid #49323B!important;
  border-radius:6px!important;
  color:#C9B7BD!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:500!important;
}
.auth-register-screen .password-rules span.ok{
  background:#173328!important;
  border-color:#2E6250!important;
  color:#C0E7D1!important;
}
.auth-register-screen .auth-check{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:10px 0!important;
  min-height:24px!important;
  color:#D8C7CD!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:400!important;
}
.auth-register-screen .auth-check input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  accent-color:#8D3B51!important;
}
.auth-register-screen .auth-check a{
  color:#F5F1EE!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
.auth-register-screen .auth-panel .btn.accent{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  height:46px!important;
  padding:10px 16px!important;
  border:1px solid #7E3248!important;
  border-radius:6px!important;
  background:#682033!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.2!important;
  box-shadow:none!important;
  letter-spacing:0!important;
  cursor:pointer!important;
}
.auth-register-screen .auth-panel .btn.accent:hover,
.auth-register-screen .auth-panel .btn.accent:focus-visible{
  background:#7B2C43!important;
  border-color:#B07689!important;
}
.auth-register-screen .auth-panel>p:last-child{
  margin:18px 0 0!important;
  color:#C8B7BC!important;
  font-size:12px!important;
  text-align:center!important;
}
.auth-register-screen .auth-panel>p:last-child a{color:#F5F1EE!important;font-weight:600!important}
.auth-register-screen .auth-panel .toast.danger{
  border:1px solid #854454!important;
  border-radius:6px!important;
  background:#3A1925!important;
  color:#FBE7EC!important;
  font-size:12px!important;
}
.auth-register-screen::after{
  content:'VIVA   ·   ACESSE   ·   PERTENÇA';
  display:block;
  padding-top:24px;
  color:#9F888F;
  font-size:10px;
  font-weight:400;
  letter-spacing:.24em;
  line-height:1.5;
  text-align:center;
}
@media(max-width:400px){
  .auth-screen.auth-register-screen{padding:22px 16px 25px!important}
  .auth-register-screen .auth-copy{padding-top:76px!important}
  .auth-register-screen .auth-panel{margin-top:21px!important;padding:20px 16px 18px!important}
  .auth-register-screen .auth-copy h1{font-size:26px!important}
  .auth-register-screen .auth-copy p{font-size:12px!important}
}
@media(min-width:768px){
  .auth-screen.auth-register-screen{padding:35px 32px!important}
  .auth-register-screen .auth-hero{height:auto!important;min-height:0!important;max-height:none!important}
  .auth-register-screen .auth-panel{height:auto!important;min-height:0!important;max-height:none!important}
}
@media(prefers-reduced-motion:reduce){
  .auth-register-screen *, .auth-register-screen *::before, .auth-register-screen *::after{transition:none!important;animation:none!important}
}


/* Alluzzi v1.35 — identificação oficial das telas de autenticação.
   A imagem marfim é explícita no HTML: não depende de data-theme ou
   classes .alluzzi-brand-logo-light/.alluzzi-brand-logo-dark. */
.auth-screen .auth-hero .brand .alluzzi-auth-logo,
.auth-screen .recovery-brand .alluzzi-auth-logo {
  display:block!important;
  width:145px!important;
  height:auto!important;
  max-width:100%!important;
  max-height:52px!important;
  object-fit:contain!important;
  object-position:left center!important;
  filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
  box-shadow:none!important;
}
.auth-screen .recovery-brand .alluzzi-auth-logo {
  width:176px!important;
  margin-inline:auto!important;
  object-position:center!important;
}
/* Evita que a logo oficial receba heranças de estilos do tema antigo. */
.auth-register-screen .auth-hero .brand::before,
.auth-register-screen .auth-hero .brand::after { content:none!important; }

/* ============================================================
   ALLUZZI v1.36 — CADASTRO COMPACTO PARA TELAS MOBILE
   Escopo intencional: apenas /app/register, sem afetar login,
   recuperação de senha, regras do formulário e API de cadastro.
   Campos e botão principal mantidos com altura de toque >= 44px.
   Os espaços inline legados são tratados somente neste formulário.
   ============================================================ */
@media (max-width: 767px) {
  .auth-screen.auth-register-screen {
    min-height: 100svh!important;
    height: auto!important;
    padding: 15px 16px max(14px, env(safe-area-inset-bottom))!important;
  }
  .auth-register-screen .auth-hero .brand {
    min-height: 34px!important;
    width: 142px!important;
  }
  .auth-register-screen .auth-hero .brand .alluzzi-auth-logo {
    width: 137px!important;
    max-height: 38px!important;
  }
  .auth-register-screen .auth-switch {
    min-height: 32px!important;
    padding: 7px 13px!important;
  }
  .auth-register-screen .auth-copy {
    padding: 62px 2px 0!important;
  }
  .auth-register-screen .auth-copy::before {
    margin-bottom: 4px!important;
    font-size: 9px!important;
    letter-spacing: .17em!important;
  }
  .auth-register-screen .auth-copy h1 {
    font-size: 23px!important;
    line-height: 1.15!important;
  }
  .auth-register-screen .auth-copy p {
    margin-top: 5px!important;
    font-size: 12px!important;
    line-height: 1.4!important;
  }
  .auth-register-screen .auth-panel {
    margin-top: 14px!important;
    padding: 16px 15px 13px!important;
  }
  .auth-register-screen .auth-panel h2 {
    font-size: 20px!important;
    line-height: 1.2!important;
  }
  .auth-register-screen .auth-panel > p:not(:last-child) {
    margin: 3px 0 10px!important;
    line-height: 1.35!important;
  }
  .auth-register-screen .auth-panel form > .label {
    margin-bottom: 4px!important;
    font-size: 10px!important;
    letter-spacing: .13em!important;
  }
  .auth-register-screen .auth-panel .input {
    min-height: 44px!important;
    height: 44px!important;
  }
  .auth-register-screen .auth-panel form > div[style*="height:11px"] {
    height: 7px!important;
  }
  .auth-register-screen .auth-panel form > div[style*="height:14px"] {
    height: 6px!important;
  }
  .auth-register-screen .auth-panel form > div[style*="height:10px"] {
    height: 5px!important;
  }
  .auth-register-screen .password-rules {
    margin-top: 7px!important;
    gap: 4px!important;
  }
  .auth-register-screen .password-rules span {
    min-height: 22px!important;
    padding: 4px 6px!important;
    font-size: 9px!important;
    line-height: 1.1!important;
  }
  .auth-register-screen .auth-check {
    margin: 5px 0!important;
    gap: 8px!important;
    font-size: 12px!important;
    min-height: 24px!important;
  }
  .auth-register-screen .auth-panel .btn.accent {
    min-height: 44px!important;
    height: 44px!important;
  }
  .auth-register-screen .auth-panel > p:last-child {
    margin-top: 9px!important;
  }
  .auth-register-screen::after {
    padding-top: 10px!important;
    font-size: 9px!important;
  }
}
@media (max-width: 380px) {
  .auth-screen.auth-register-screen {
    padding-inline: 14px!important;
  }
  .auth-register-screen .auth-panel {
    padding-inline: 13px!important;
  }
}
/* Em telas baixas, ocultamos só a assinatura decorativa;
   formulário, aceites e link Entrar seguem presentes e roláveis. */
@media (max-width: 767px) and (max-height: 740px) {
  .auth-register-screen::after {
    display: none!important;
  }
}


/* ALLUZZI v1.37 — equilíbrio vertical no cadastro de telas mais altas.
   Não altera o formulário nem impede rolagem caso teclado/erro aumente conteúdo. */
@media (max-width:767px) and (min-height:780px){
  .auth-screen.auth-register-screen{
    justify-content:center!important;
    padding-top:max(25px,env(safe-area-inset-top))!important;
    padding-bottom:max(25px,env(safe-area-inset-bottom))!important;
  }
  .auth-register-screen .auth-copy{padding-top:clamp(68px,9svh,85px)!important}
  .auth-register-screen .auth-panel{
    margin-top:clamp(17px,2.7svh,25px)!important;
    padding-top:clamp(19px,2.6svh,25px)!important;
    padding-bottom:clamp(17px,2.4svh,23px)!important;
  }
  .auth-register-screen .auth-panel > p:not(:last-child){margin-bottom:13px!important}
  .auth-register-screen .auth-panel form > div[style*="height:11px"]{height:10px!important}
  .auth-register-screen .auth-panel form > div[style*="height:14px"]{height:8px!important}
  .auth-register-screen .auth-panel form > div[style*="height:10px"]{height:7px!important}
  .auth-register-screen .password-rules{margin-top:9px!important}
  .auth-register-screen .auth-check{margin:7px 0!important}
  .auth-register-screen .auth-panel > p:last-child{margin-top:13px!important}
}
