/* ===== LOGIN ===== */

.login-body {
  min-height: 100vh;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
}

/* Layout dois painéis */
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===== PAINEL DE BRANDING (esquerdo) ===== */
.login-brand {
  background: linear-gradient(150deg, var(--dark) 0%, #243447 60%, #0d3d3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

/* Detalhe decorativo */
.login-brand::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(0,180,180,.08);
  bottom: -140px;
  right: -100px;
  pointer-events: none;
}

.login-brand::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 40px solid rgba(0,180,180,.06);
  top: -60px;
  left: -60px;
  pointer-events: none;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 48px;
}

.login-logo img { height: 48px; width: auto; }

.login-logo .logo-text { display: flex; flex-direction: column; gap: 2px; }
.login-logo .logo-text span:first-child {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.login-logo .logo-text span:last-child {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  line-height: 1.3;
}

.brand-headline {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.brand-sub {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 48px;
}

.brand-stats {
  display: flex;
  gap: 32px;
}

.brand-stat { display: flex; flex-direction: column; gap: 4px; }

.brand-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.brand-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== PAINEL DO FORMULÁRIO (direito) ===== */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--light-gray);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

/* Logo mobile (oculto no desktop) */
.login-logo-mobile { display: none; }

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== FORMULÁRIO ===== */
.login-form { display: flex; flex-direction: column; gap: 18px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.field-input {
  width: 100%;
  padding: 11px 42px 11px 40px;
  border: 1.5px solid var(--primary, #00b4b4);
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.field-input::placeholder { color: #b0bac6; }

.field-input:focus {
  border-color: var(--primary-dark, #008f8f);
  box-shadow: 0 0 0 3px rgba(0,180,180,.15);
}

.field-input.error { border-color: #ef4444; }
.field-input.error:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

.toggle-senha {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color .2s;
}

.toggle-senha:hover { color: var(--primary); }

.field-error {
  font-size: 12px;
  color: #ef4444;
  min-height: 16px;
}

/* Link esqueci senha */
.form-row-link { display: flex; justify-content: flex-end; margin-top: -6px; }

.link-esqueci {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* Botão entrar */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn-login:hover { background: #009999; }
.btn-login:active { transform: scale(.98); }

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Botões sociais */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.btn-google {
  background: var(--white);
  color: #3c4043;
}

.btn-google:hover {
  border-color: #4285f4;
  box-shadow: 0 2px 8px rgba(66,133,244,.18);
}

.btn-suap {
  background: var(--white);
  color: var(--dark);
}

.btn-suap:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,180,180,.18);
  background: #f0fdfd;
}

.btn-suap svg { color: var(--primary); }

/* Voltar ao site */
.login-back {
  text-align: center;
  margin-top: 24px;
}

.login-back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}

.login-back a:hover { color: var(--primary); }

/* ===== ALERTAS ===== */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.alert-error,
.alert-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 40px 20px; }

  .login-logo-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 28px;
  }

  .login-logo-mobile img { height: 40px; width: auto; }
  .login-logo-mobile .logo-text { display: flex; flex-direction: column; gap: 2px; }
  .login-logo-mobile .logo-text span:first-child {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
  }
  .login-logo-mobile .logo-text span:last-child {
    font-size: 10px;
    color: var(--text-muted);
  }

  .login-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .login-panel { padding: 32px 16px; }
  .login-card { max-width: 100%; }
}
