/* ==========================================================================
   GESPUBLIC Connect - telas de autenticacao (login, recuperar/redefinir senha)
   Card central: painel esquerdo (logo + saudacao, azul) + formulario a direita.
   Identidade da landing (azul GESPUBLIC). Sem fonte externa (CSP). Namespace .au-.
   ========================================================================== */

.au-body {
  --au-blue: #0367a6;
  --au-blue-d: #024e7f;
  --au-ink: #0c1c2c;
  --au-text: #566577;
  --au-muted: #8b97a4;
  --au-border: #e0e6ed;
  --au-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(3,103,166,.10), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(10,154,58,.07), transparent 55%),
    #eef3f8;
  font-family: var(--au-font);
  color: var(--au-text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.003em;
}

.au-shell { width: 100%; max-width: 940px; }

.au-card {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: #fff;
  border: 1px solid var(--au-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(12,28,44,.16);
}

/* Painel esquerdo: logo + saudacao ---------------------------------------- */
.au-side {
  background:
    radial-gradient(620px 320px at 12% -5%, rgba(3,103,166,.12), transparent 60%),
    linear-gradient(160deg, #e9f2fb 0%, #f4f7fb 100%);
  color: var(--au-ink);
  border-right: 1px solid var(--au-border);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.au-brand { display: inline-flex; text-decoration: none; }
.au-brand img { height: 50px; width: auto; display: block; }
.au-side-msg h2 { font-size: 1.55rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .55rem; color: var(--au-ink); }
.au-side-msg p { font-size: .95rem; line-height: 1.6; color: var(--au-text); margin: 0; }
.au-side-list { list-style: none; padding: 0; margin: .2rem 0 0; display: flex; flex-direction: column; gap: .65rem; }
.au-side-list li { font-size: .9rem; color: var(--au-text); display: flex; align-items: center; gap: .6rem; }
.au-side-list li::before {
  content: "\2713";
  flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(3,103,166,.10); color: var(--au-blue);
  display: grid; place-items: center; font-size: .68rem; font-weight: 700;
}
.au-side-foot { margin-top: auto; font-size: .78rem; color: var(--au-muted); }

/* Painel direito: formulario ---------------------------------------------- */
.au-main { padding: clamp(2rem, 4vw, 3rem); display: flex; align-items: center; }
.au-main-inner { width: 100%; }

.gc-auth-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--au-muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color .15s ease;
}
.gc-auth-back svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.gc-auth-back:hover {
  color: var(--au-blue);
  text-decoration: none;
}
.gc-auth-back:hover svg {
  transform: translateX(-3px);
}

.gc-auth-title { font-size: 1.55rem; font-weight: 600; color: var(--au-ink); letter-spacing: -.02em; margin: 0 0 .35rem; }
.gc-auth-sub { font-size: .95rem; color: var(--au-text); margin: 0 0 1.7rem; }

.au-main .form-label { font-size: .85rem; font-weight: 500; color: var(--au-ink); margin-bottom: .35rem; }
.au-main .form-control {
  border: 1px solid var(--au-border);
  border-radius: 10px;
  padding: .7rem .85rem;
  font-size: .95rem;
  color: var(--au-ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.au-main .form-control:focus {
  border-color: var(--au-blue);
  box-shadow: 0 0 0 3px rgba(3,103,166,.15);
  outline: 0;
}

.gc-btn-primary {
  background: var(--au-blue);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .75rem 1.4rem;
  font-weight: 550;
  font-size: .98rem;
  transition: background .15s ease;
}
.gc-btn-primary:hover, .gc-btn-primary:focus { background: var(--au-blue-d); color: #fff; }

.gc-auth-link { margin: 1.3rem 0 0; text-align: center; font-size: .9rem; color: var(--au-muted); }
.gc-auth-link a { color: var(--au-blue); text-decoration: none; font-weight: 500; }
.gc-auth-link a:hover { text-decoration: underline; }

.gc-alert-erro, .alert.gc-alert-erro {
  background: #fdeceb;
  border: 1px solid #f3c5c2;
  color: #b3261e;
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .9rem;
  margin-bottom: 1.1rem;
}

/* Responsivo: empilha; o painel azul vira faixa superior compacta ---------- */
@media (max-width: 720px) {
  .au-card { grid-template-columns: 1fr; }
  .au-side { padding: 1.6rem; gap: .8rem; border-right: 0; border-bottom: 1px solid var(--au-border); }
  .au-side-list, .au-side-foot { display: none; }
  .au-brand img { height: 42px; }
  .au-side-msg h2 { font-size: 1.3rem; }
}
