/* ============================================================
   VeriCom — login.css
   Paleta: Slate azulado médio + Dourado âmbar + Branco limpo
   Estética: Corporativa clean, moderna e arejada
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-950:  #1a2b45;
  --navy-900:  #1f3354;
  --navy-800:  #26406a;
  --navy-700:  #2e5080;
  --navy-600:  #3a6498;

  --gold-500:  #c9973a;
  --gold-400:  #d9aa52;
  --gold-300:  #e8c27a;
  --gold-glow: rgba(201,151,58,.22);

  --ice-50:    #f7f9fc;
  --ice-100:   #eef2f8;
  --ice-200:   #dce5f0;
  --ice-300:   #9fb4cc;

  --text-dark:    #1a2b45;
  --text-mid:     #4a617e;
  --text-light:   #7a94ae;

  --white:     #ffffff;
  --danger:    #d94f4f;
  --success:   #2ea86e;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --shadow-input: 0 2px 10px rgba(26,43,69,.10);
}

/* ── Base — scroll APENAS no body ────────────────────────── */
html {
  height: 100%;
}

body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--ice-50);
  color: var(--text-dark);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Layout: Split Screen ─────────────────────────────────── */
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   PAINEL ESQUERDO — sticky, sem scroll interno
══════════════════════════════════════════════════════════ */
.panel-left {
  position: sticky;
  top: 0;
  height: 100vh;           /* travado na viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 52px;
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;         /* corta apenas pseudo-elementos decorativos */
}

/* Grade decorativa */
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,151,58,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,151,58,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Círculo de brilho */
.panel-left::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,58,.16) 0%, transparent 70%);
  pointer-events: none;
}

.panel-left-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  animation: fadeSlideLeft .7s cubic-bezier(.4,0,.2,1) both;
}

/* ── Logo (desktop — painel esquerdo) ─────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy-950);
  box-shadow: 0 4px 16px var(--gold-glow);
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.brand-name span { color: var(--gold-400); }

/* ── Headline ─────────────────────────────────────────────── */
.panel-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.1vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 14px;
}

.panel-headline em {
  font-style: normal;
  color: var(--gold-400);
  position: relative;
}

.panel-headline em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.panel-sub {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--ice-300);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 380px;
}

/* ── Pilares de confiança ─────────────────────────────────── */
.trust-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(201,151,58,.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(4px);
  transition: border-color var(--transition), background var(--transition);
}

.pillar:hover {
  border-color: rgba(201,151,58,.38);
  background: rgba(255,255,255,.05);
}

.pillar-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201,151,58,.2), rgba(201,151,58,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.pillar-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1px;
}

.pillar-text span {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ice-300);
  line-height: 1.45;
}

/* Divisor vertical decorativo */
.divider-vert {
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(201,151,58,.3) 40%,
    rgba(201,151,58,.3) 60%,
    transparent);
}

/* ══════════════════════════════════════════════════════════
   PAINEL DIREITO — sem scroll interno
══════════════════════════════════════════════════════════ */
.panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 56px;
  background: var(--white);
  position: relative;
  /* NENHUM overflow/scroll aqui — o body é quem rola */
}

/* Efeito dourado sutil */
.panel-right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,58,.07) 0%, transparent 65%);
  pointer-events: none;
}

.form-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* ── Logo mobile (oculto no desktop) ─────────────────────── */
.brand-mobile {
  display: none;           /* escondido por padrão */
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mobile .brand-icon {
  width: 36px;
  height: 36px;
  font-size: 17px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  box-shadow: 0 3px 12px var(--gold-glow);
  flex-shrink: 0;
}

.brand-mobile .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

.brand-mobile .brand-name span { color: var(--gold-500); }

/* ── Cabeçalho do formulário ──────────────────────────────── */
.form-header {
  margin-bottom: 26px;
}

.form-label-small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 9px;
}

.form-label-small i { font-size: 11px; }

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 7px;
}

.form-desc {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text-mid);
}

/* ── Campos ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--ice-300);
  pointer-events: none;
  transition: color var(--transition);
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 40px;
  border: 1.5px solid var(--ice-200);
  border-radius: var(--radius-md);
  background: var(--ice-50);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.input-wrap input::placeholder {
  color: var(--ice-300);
  font-weight: 300;
}

.input-wrap input:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-glow), var(--shadow-input);
}

.input-wrap:focus-within .input-icon { color: var(--gold-500); }

/* Toggle senha */
.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ice-300);
  font-size: 15px;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  z-index: 1;
}

.btn-toggle-pwd:hover { color: var(--gold-500); }

/* Erro campo */
.input-wrap input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217,79,79,.12);
}

.field-error {
  font-size: 13.5px;
  color: var(--danger);
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 5px;
}

.field-error.visible { display: flex; }

/* Alerta servidor */
.alert-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(217,79,79,.07);
  border: 1px solid rgba(217,79,79,.2);
  color: var(--danger);
  font-size: 15px;
  margin-bottom: 18px;
}

.alert-error i { flex-shrink: 0; font-size: 15px; }

/* ── Linha lembrar + esqueci ──────────────────────────────── */
.form-row-aux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-mid);
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-box {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--ice-200);
  border-radius: 4px;
  background: var(--ice-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.checkbox-box i {
  font-size: 11px;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-box {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-box i { opacity: 1; }

.btn-forgot {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--gold-500);
  padding: 0;
  transition: color var(--transition);
  text-decoration: none;
}

.btn-forgot:hover {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Botão Login ──────────────────────────────────────────── */
.btn-login {
  position: relative;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 100%);
  color: var(--navy-950);
  font-family: 'DM Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 5px 20px var(--gold-glow), 0 2px 6px rgba(26,43,69,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.28) 0%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.btn-login:hover::before  { transform: translateX(100%); }
.btn-login:hover          { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,151,58,.35), 0 3px 10px rgba(26,43,69,.12); filter: brightness(1.05); }
.btn-login:active         { transform: translateY(0); filter: brightness(.96); }

.btn-login .btn-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(26,43,69,.18);
  border-top-color: var(--navy-950);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-login.loading .btn-spinner { display: block; }
.btn-login.loading .btn-text    { opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divisor + badge segurança ────────────────────────────── */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ice-200);
}

.form-divider span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-light);
}

.secure-badge i { color: var(--success); font-size: 13px; }

/* ── Rodapé de segurança ──────────────────────────────────── */
.security-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-950);
  border-top: 2px solid rgba(201,151,58,.35);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(26,43,69,.18);
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s cubic-bezier(.4,0,.2,1);
}

.security-notice.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.security-notice i {
  font-size: 18px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.security-notice p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
  flex: 1;
}

.security-notice strong {
  color: var(--white);
  font-weight: 600;
}

.btn-notice-ok {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(201,151,58,.5);
  background: rgba(201,151,58,.12);
  color: var(--gold-300);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-notice-ok:hover {
  background: rgba(201,151,58,.26);
  border-color: var(--gold-400);
  color: var(--white);
}

/* ── Animações de entrada ─────────────────────────────────── */
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header             { animation: fadeSlideRight .6s .08s cubic-bezier(.4,0,.2,1) both; }
.form-group:nth-child(1) { animation: fadeUp .5s .18s both; }
.form-group:nth-child(2) { animation: fadeUp .5s .26s both; }
.form-row-aux            { animation: fadeUp .5s .33s both; }
.btn-login               { animation: fadeUp .5s .40s both; }
.form-divider,
.secure-badge            { animation: fadeUp .5s .47s both; }

/* ══════════════════════════════════════════════════════════
   MOBILE — painel esquerdo oculto, logo aparece no form
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  /* Oculta o painel esquerdo inteiramente */
  .panel-left { display: none; }

  /* Painel direito ocupa tela toda */
  .panel-right {
    padding: 36px 24px 72px;
    justify-content: flex-start;
    min-height: 100vh;
  }

  .form-container {
    max-width: 100%;
    padding-top: 4px;
  }

  /* Exibe logo no topo do formulário */
  .brand-mobile { display: flex; }

  .form-row-aux { flex-direction: column; align-items: flex-start; }

  .security-notice { padding: 12px 16px; gap: 10px; }
}

@media (max-width: 400px) {
  .panel-right { padding: 28px 16px 72px; }
  .form-title  { font-size: 25px; }
}

/* ── Autocomplete ─────────────────────────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--ice-50) inset;
  -webkit-text-fill-color: var(--text-dark);
  caret-color: var(--text-dark);
  transition: background-color 5000s;
}