/* =========================================================
   Portal de Chamados - Login (CSS independente / Figma-like)
   Refatorado: sem regras duplicadas / sem patches acumulados
   ========================================================= */

:root{
  /* Cores */
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;

  --primary: #071B52;
  --primary-dark: #061542;

  --google-red: #ef4444;
  --input-border: #c9d2e6;

  /* Layout */
  --container: 1280px;
  --gutter: 48px;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow: 0 10px 25px rgba(15, 23, 42, 0.10);

  /* Hero sizing (igual ao print) */
  --hero-gap: 22px;
  --hero-right: 480px;
  --hero-height: 620px;

  /* Tipografia */
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Base / reset leve */
*,
*::before,
*::after{
  box-sizing: border-box;
}

.af-login{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

/* (Opcional) evita “pulos” ao focar */
:focus-visible{
  outline: none;
}

/* =========================================================
   Topbar
   ========================================================= */
.af-topbar{
  display: flex;
  justify-content: center;
  padding: 18px 16px 8px;
}

.af-topbar img{
  height: 42px;
  width: auto;
}

/* =========================================================
   Container
   ========================================================= */
.af-container{
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
}

/* =========================================================
   HERO (banner + card) — mesma altura
   ========================================================= */
.af-hero{
  display: grid;
  grid-template-columns: 1fr var(--hero-right);
  gap: var(--hero-gap);
  height: var(--hero-height);
  margin: 8px 0 26px;
  align-items: stretch; /* ambos 100% da altura */
}

/* Banner */
.af-hero-banner{
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.af-hero-banner img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card direito */
.af-card{
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.04);

  padding: 28px 32px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.af-card-title{
  margin: 6px 0 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

/* =========================================================
   Botões
   ========================================================= */
.af-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .06s ease;
}

.af-btn:active{
  transform: translateY(1px);
}

/* Google — branco + hover vermelho */
.af-btn-google{
  height: 48px;
  border-radius: 999px;

  background: #fff;
  border-color: var(--google-red);
  color: #111827;
}

.af-btn-google i{
  font-size: 18px;
}

.af-btn-google:hover{
  background: var(--google-red);
  color: #fff;
}

/* Primary */
.af-btn-primary{
  height: 48px;
  border-radius: 6px;

  background: var(--primary);
  color: #fff;
}

.af-btn-primary:hover{
  background: var(--primary-dark);
}

/* =========================================================
   Divisor “ou”
   ========================================================= */
.af-divider{
  position: relative;
  margin: 18px 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.af-divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background: #d9dde6;
}

.af-divider span{
  position: relative;
  background: var(--card);
  padding: 0 14px;
}

/* =========================================================
   Form
   ========================================================= */
.af-form{
  flex: 1;                /* ocupa a altura restante do card */
  overflow-y: auto;       /* se o conteúdo crescer, rola dentro */
  padding-right: 2px;     /* evita “cortar” sombra do focus no scroll */
}

.af-label{
  display: block;
  margin: 14px 0 8px;

  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* input + ícone */
.af-input{
  position: relative;
}

.af-input input{
  width: 100%;
  max-width: 100%;

  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--input-border);

  padding: 0 44px 0 14px;
  font-size: 14px;
  color: #111827;
  background: #fff;

  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.af-input input::placeholder{
  color: #8b97b1;
}

.af-input i{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #7b88a8;
}

.af-input input:focus{
  border-color: #8aa3ff;
  box-shadow: 0 0 0 4px rgba(47, 78, 163, .12);
}

/* Erros */
.af-error{
  margin-top: 8px;
  font-size: 12px;
  color: #ef4444;
}

.af-input input.is-invalid{
  border-color: #ef4444;
}

/* Remember + link */
.af-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 18px;
}

.af-remember{
  font-size: 14px;
  color: #111827;
}

.af-link{
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.af-link:hover{
  text-decoration: underline;
}

/* =========================================================
   Help (Antes de abrir um chamado)
   ========================================================= */
.af-help{
  margin: 22px 0 34px;
}

.af-help-title-h3{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.af-help-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.af-help-card{
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
}

/* Cabeçalho do card (fechado, como no print) */
.af-help-head{
  width: 100%;
  border: 0;
  background: transparent;

  padding: 16px 18px;
  display: grid;
  grid-template-columns: 56px 1fr 18px;
  align-items: center;
  gap: 14px;

  cursor: pointer;
  text-align: left;
}

.af-help-head img{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.af-help-title{
  font-size: 16px;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.15;
}

.af-help-head i{
  color: var(--primary);
  font-size: 14px;
}

/* =========================================================
   Footer
   ========================================================= */
.af-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #dff4f7;
  border-top: 1px solid rgba(0,0,0,.04);
  z-index: 1030;
}

.af-footer-inner{
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;

  padding: 34px 0 24px;

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;

  border-bottom: 1px solid rgba(7, 27, 82, 0.22);
}

.af-footer-inner img{
  height: 34px;
  width: auto;
}

.af-social{
  display:flex;
  gap: 10px;
}

.af-social a{
  width: 34px;
  height: 34px;
  border-radius: 6px;

  background: var(--primary);
  color: #fff;

  display:grid;
  place-items:center;

  text-decoration: none;
  font-size: 16px;
}

.af-copy{
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: 16px 0 24px;

  font-size: 12px;
  color: rgba(7, 27, 82, 0.55);
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px){
  .af-hero{
    grid-template-columns: 1fr;
    height: auto;
  }

  .af-hero-banner{
    height: auto;
  }

  .af-hero-banner img{
    height: auto;
  }

  .af-card{
    height: auto;
  }

  .af-help-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================
   HELP accordion – final
   ========================= */

.af-help-card{
  overflow: hidden; /* garante que o body não “vaze” */
}

.af-help-head{
  padding: 18px 22px; /* mais respiro como no print */
}

.af-help-title{
  color: var(--primary);
  font-weight: 800;
}

/* Chevron gira ao abrir */
.af-help-card .fa-chevron-down{
  transition: transform .18s ease;
}
.af-help-card.is-open .fa-chevron-down{
  transform: rotate(180deg);
}

/* Corpo do accordion */
.af-help-body{
  padding: 8px 22px 18px;  /* igual sensação do print */
  color: #2b2b2b;
}

.af-help-body[hidden]{
  display: none !important;
}

/* Títulos internos */
.af-help-body h4{
  margin: 16px 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #2b2b2b;
}

/* Distanciamento do “SLA:” */
.af-help-body .mt{
  margin-top: 20px;
}

/* Lista com divisórias (sem bullets) */
.af-help-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.af-help-list li{
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.35;
  color: #2b2b2b;
  border-top: 1px solid rgba(2, 6, 23, 0.12);
}
.af-help-list li:first-child{
  border-top: 0;
  padding-top: 6px;
}

/* Blocos com linhas (para o card do meio) */
.af-help-lines{
  border-top: 1px solid rgba(2, 6, 23, 0.12);
}
.af-help-line{
  padding: 14px 0;
  border-top: 1px solid rgba(2, 6, 23, 0.12);
  font-size: 16px;
  line-height: 1.35;
}
.af-help-line:first-child{
  border-top: 0;
  padding-top: 12px;
}

.af-help-p{
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #2b2b2b;
}
/* =========================
   Accordion com animação (slide)
   ========================= */

/* Corpo do accordion animável */
.af-help-body{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;

  transition:
    max-height .28s ease,
    opacity .18s ease,
    padding .18s ease;
}

/* Aberto */
.af-help-card.is-open .af-help-body{
  max-height: 800px;        /* altura suficiente para o conteúdo */
  opacity: 1;
  padding-top: 8px;
  padding-bottom: 18px;
}

/* Não use mais [hidden] com display:none, senão não anima */
.af-help-body[hidden]{
  display: block !important;
}
