:root{
  --text: #f2f2f2;
  --muted: rgba(242,242,242,.70);
  --line: rgba(255,255,255,.14);
  --grad1: #5a3bff;
  --grad2: #ff7a3d;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:#000;
}

/* FUNDO FIXO (ATRÁS DE TUDO) */
.bg{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.86) 100%),
    url("../img/fundo_bg.png") center/cover no-repeat;
  z-index: -1;
}

/* CENTRALIZAR O CARD */
.wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

/* CARD TODO PRETO (SEM DIVISÃO) */
.login-card{
  width: min(720px, 92%);     /* maior porque agora tem 2 colunas */
  background: rgba(0,0,0,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: 0 18px 65px rgba(0,0,0,.60);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 0;                 /* importante */
}


h1{
  margin:0 0 16px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .2px;
}

.form{display:flex; flex-direction:column; gap: 12px}

.field span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}

/* INPUT PRETO */
.field input{
  width:100%;
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  background: #000;                 /* preto */
  color: #fff;
  border: 1px solid var(--line);    /* borda simples */
  outline: none;
  box-shadow: none;
}

.field input:focus{
  border-color: rgba(255,255,255,.28);
}

/* Links */
.row{
  display:flex;
  justify-content:flex-end;
  margin-top: -2px;
}
.row.center{justify-content:center}

.link{
  font-size: 12px;
  color: rgba(255,255,255,.85);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 2px;
}
.link:hover{opacity:.9}
.link.muted{color: rgba(255,255,255,.70)}

/* Botão */
.btn{
  margin-top: 8px;
  height: 42px;
  border:none;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 800;
  font-size: 15px;
  color:#fff;
  background: linear-gradient(90deg, var(--grad1), #8b4bff, var(--grad2));
  box-shadow: 0 18px 45px rgba(90,59,255,.18);
}
.btn:active{transform: translateY(1px)}

/* Bloco IA (SEM DIVISÃO, TUDO JUNTO) */
.ai{
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 8px;
}

.ai-gif{
  width: 120px;
  max-width: 70%;
  height: auto;

  border: none;          /* remove a borda cinza */
  background: transparent;
  box-shadow: none;      /* remove sombra/moldura */
  border-radius: 0;      /* se quiser manter arredondado, troque por 12px */
}

.ai-title{
  margin:0;
  font-weight: 900;
  font-size: 14px;
}
.ai-sub{
  margin:0;
  opacity:.82;
  font-size: 12px;
}

/* Msg e rodapé */
.msg{
  margin: 8px 0 0;
  min-height: 16px;
  font-size: 12px;
  color: rgba(255,180,120,.92);
  text-align:center;
}

.footer{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-align:center;
}
.card-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;                     /* sem “divisão” */
}

/* paddings separados */
.card-form{
  padding: 26px 24px 18px;
}

.card-ai{
  padding: 22px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;

  background: transparent;   /* fica igual ao preto do card */
  border-left: none;         /* sem divisória */
}

@media (max-width: 760px){
  .login-card{ width: min(520px, 92%); }
  .card-grid{ grid-template-columns: 1fr; }
  .card-ai{ background: rgba(255,255,255,.04); }
}

/* Modal suporte (tema igual ao login) */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.modal.is-open{ display: flex; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
}

.modal-card{
  position: relative;
  width: min(520px, 92vw);
  background: rgba(0,0,0,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 18px 65px rgba(0,0,0,.65);
  padding: 18px 16px;
}

.modal-title{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.modal-text{
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(242,242,242,.82);
  line-height: 1.35;
}

.modal-email{
  display: inline-block;
  margin-left: 6px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.modal-actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
}

.modal-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color:#fff;
  background: linear-gradient(90deg, var(--grad1), #8b4bff, var(--grad2));
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.modal-btn.ghost{
  background: rgba(255,255,255,.06);
}
.modal-btn.ghost:hover{ opacity:.95; }
