:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#5a5a5a;
  --border:#e8e8e8;
  --btn:#0f0f0f;
  --btnText:#ffffff;
  --radius:16px;
  --shadow:0 8px 30px rgba(0,0,0,.06);
}

*{ box-sizing:border-box }
html,body{ height:100% }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* páginas estruturais */
body.login-page,
body.generate-page{
  min-height:100vh;
}

/* LOGIN: card em cima + rodapé embaixo */
body.login-page{
  display:flex;
  flex-direction:column;
}

/* GERAR: card centralizado na tela cinza */
body.generate-page{
  display:flex;
  flex-direction:column;
}
/* Área cinza onde o card fica centralizado */
.page-main{
  flex: 1;  
  background-color:#605f5f;                      /* ocupa todo o espaço entre topo e rodapé */
  display: flex;
  align-items: center;            /* centraliza verticalmente */
  justify-content: center;        /* centraliza horizontalmente */
}


/* =========== TOPO (CINZA) =========== */

.top-area{
  width:100%;
}

/* topo da página de login */
body.login-page .top-area{
  background-color:#605f5f;
  display:flex;
  justify-content:center;
  padding:32px 0 330px;   /* espaço cinza entre card e rodapé */
}

/* topo da página de geração: card mais centralizado */
body.generate-page .top-area{
  background-color:#605f5f;
  display:flex;
  justify-content:center;
  align-items:center;
  flex:1;                /* ocupa a altura toda para centralizar verticalmente */
  padding:24px 0 32px;
}

/* =========== CARD =========== */

.card{
  width:min(560px,94vw);
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:clamp(20px,3.6vw,36px);
}

/* card mais largo da tela de gerar */
.card.wide{
  width:min(720px,94vw);
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:28px;
}

.brand-logo{
  height:40px;
  width:auto;
  display:block;
}

.subtitle{
  margin:0 0 6px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.subtitle.left{
  text-align:left;
}

.field{
  display:grid;
  gap:8px;
  margin-top:14px;
  margin-bottom:20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select{
  width:100%;
  height:46px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  outline:none;
  background:#fff;
  color:var(--text);
}

input:focus,
select:focus{
  border-color:#cfcfcf;
}

.row-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:10px 0 14px;
}

.link{
  color:#111;
  opacity:.75;
  text-decoration:none;
  font-size:13px;
}

.link:hover{
  opacity:1;
  text-decoration:underline;
}

.btn{
  width:100%;
  height:48px;
  border:0;
  border-radius:999px;
  background:var(--btn);
  color:var(--btnText);
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  transition:transform .02s ease, opacity .2s ease;
  margin-top:2px;
}

.btn:active{ transform:translateY(1px); }

.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.helper{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

.top-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

/* ===== Toast (se você reativar) ===== */
.toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  font-size:14px;
  display:none;
}

/* ===== Toggle de senha ===== */
.input-wrap{
  position:relative;
}

.input-wrap > input{
  padding-right:44px;
}

.toggle-visibility{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  cursor:pointer;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:0;
  border-radius:0;
  color:var(--muted);
  appearance:none;
  -webkit-appearance:none;
}

.toggle-visibility:hover{
  background:transparent;
}

.toggle-visibility:focus,
.toggle-visibility:active{
  outline:none;
  box-shadow:none;
}

.toggle-visibility svg{
  width:18px;
  height:18px;
  stroke-width:1.5;
}

/* =========== RODAPÉ LOGIN =========== */

/* faixa do rodapé */
.login-footer{
  background:#f0f0f0;
  padding:14px 14px 1px;   /* pouco padding vertical */
}

/* conteúdo do rodapé ocupando toda a largura,
   alinhado à esquerda */
.login-footer-content{
  width:100%;
  max-width:none;           /* nada de centralizar em bloco menor */
  margin:0;                 /* remove margin auto */
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}

/* duas colunas lado a lado em telas maiores */
.login-footer-box{
  flex:0 0 calc(50% - 20px);  /* 2 colunas ocupando ~50% cada */
  min-width:320px;
}

/* títulos "Quem Somos" / "Entre em contato" */
.login-footer-box h2{
  font-size:0.95rem;
  margin:0 0 6px;
  text-align:left;            /* garante alinhado à esquerda */
}

/* texto "Quem somos" – menorzinho e compacto */
.login-footer-box p{
  margin:0;
  font-size:0.84rem;
  line-height:1.3;
  text-align:justify;
}

/* ícones de contato */
.login-footer-icons{
  display:flex;
  align-items:center;
  gap:10px;
}

.login-footer-icons img{
  width:20px;
  height:20px;
  object-fit:contain;
  cursor:pointer;
}


/* =========== RESPONSIVO =========== */

@media (max-width:600px){
  body.login-page .top-area{
    padding:24px 0 56px;
  }

  .card{
    padding:20px;
  }

  .login-footer{
    padding:16px 16px;
  }

  .login-footer-content{
    flex-direction:column;
    max-width:100%;
  }
}
