/* ========================================================================
   NEUMANN PARTNERS · TELA DE LOGIN
   Visual premium · passar credibilidade e rigor enterprise
   ======================================================================== */

:root {
  --login-bg-deep: #050B1A;
  --login-bg-mid:  #0B1B36;
  --login-navy:    #0B2A4A;
  --login-accent:  #3365A0;
  --login-gold:    #C9A961;
  --login-white:   #FFFFFF;
  --login-muted:   rgba(255, 255, 255, 0.58);
  --login-soft:    rgba(255, 255, 255, 0.12);
  --login-line:    rgba(255, 255, 255, 0.08);
}

.login-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at top left, #0B2A4A 0%, #050B1A 70%);
  color: var(--login-white);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow: hidden;
  animation: loginFadeIn 0.4s ease-out;
}

@keyframes loginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-shell.login-exit {
  animation: loginFadeOut 0.3s ease-out forwards;
}

@keyframes loginFadeOut {
  to { opacity: 0; transform: scale(0.98); }
}

/* ====== AMBIENTE (orbs + grid) ====== */
.login-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: loginOrbFloat 18s ease-in-out infinite;
}

.login-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #3365A0 0%, transparent 70%);
  top: -180px; left: -120px;
  animation-delay: 0s;
}

.login-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #1E4876 0%, transparent 70%);
  bottom: -140px; right: 10%;
  animation-delay: -6s;
}

.login-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #C9A961 0%, transparent 70%);
  top: 40%; right: -100px;
  opacity: 0.18;
  animation-delay: -12s;
}

@keyframes loginOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ====== LAYOUT DUAS COLUNAS ====== */
.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  gap: 40px;
}

@media (max-width: 960px) {
  .login-layout {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .login-brand-body { display: none; }
  .login-brand-footer { display: none; }
}

/* ====== COLUNA ESQUERDA · MARCA ====== */
.login-brand {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.login-brand-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-left: -12px;   /* compensa o padding interno do PNG · alinha a borda visual do logo com o texto abaixo */
}

/* Logo oficial · PNG branco com fundo transparente, protagonista na tela */
.login-brand-logo-transparent {
  height: 180px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.45)) drop-shadow(0 0 32px rgba(201, 169, 97, 0.08));
  display: block;
}

@media (max-width: 960px) {
  .login-brand-top { justify-content: center; margin-left: 0; }
  .login-brand-logo-transparent { height: 120px; object-position: center; }
}

.login-brand-body {
  max-width: 540px;
  padding: 20px 0 40px;   /* cola no logo acima (era 60px, ficou 20px) */
}

.login-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 20px;
  color: white;
}

.login-headline-accent {
  font-weight: 600;
  background: linear-gradient(135deg, #C9A961 0%, #E8D5A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-sub {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin: 0 0 36px;
  max-width: 480px;
}

.login-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

.login-feature-icon {
  color: var(--login-gold);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.login-brand-footer {
  margin-top: auto;   /* empurra os badges pro rodapé da coluna */
  padding-top: 40px;
  border-top: 1px solid var(--login-line);
}

.login-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.login-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--login-line);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0.08) 100%);
  color: var(--login-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(201, 169, 97, 0.22);
}

.login-badge-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.login-badge-title {
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.login-badge-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  line-height: 1.2;
}

/* ====== COLUNA DIREITA · FORMULÁRIO ====== */
.login-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}

.login-card {
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  color: #111;
  animation: loginCardSlide 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.1s backwards;
  position: relative;
}

@keyframes loginCardSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card-shake {
  animation: loginShake 0.4s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.login-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F0F0F0;
}

.login-lock-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0B2A4A 0%, #1E4876 100%);
  color: white;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 42, 74, 0.25);
}

.login-lock-badge svg { width: 20px; height: 20px; }

.login-access-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0B2A4A;
  margin-bottom: 4px;
}

.login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field { display: flex; flex-direction: column; gap: 7px; }

.login-field label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.2px;
}

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

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #9CA3AF;
  pointer-events: none;
  z-index: 1;
}

.login-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: #F7F9FB;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  outline: none;
  transition: all 0.15s;
}

.login-input-wrap input:focus {
  background: white;
  border-color: #0B2A4A;
  box-shadow: 0 0 0 4px rgba(11, 42, 74, 0.08);
}

.login-input-wrap input::placeholder { color: #9CA3AF; }

.login-eye {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.login-eye:hover { background: rgba(11, 42, 74, 0.06); color: #0B2A4A; }
.login-eye svg { width: 16px; height: 16px; }

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #4B5563;
  user-select: none;
  margin-top: 2px;
}

.login-remember input { cursor: pointer; accent-color: #0B2A4A; }

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  font-size: 13px;
  color: #B91C1C;
  font-weight: 500;
  animation: loginErrorIn 0.2s ease-out;
}

.login-error svg { width: 16px; height: 16px; flex-shrink: 0; }

@keyframes loginErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-submit {
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  background: linear-gradient(135deg, #0B2A4A 0%, #1E4876 100%);
  color: white;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(11, 42, 74, 0.25);
  margin-top: 6px;
}

.login-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.login-submit:hover {
  background: linear-gradient(135deg, #153C64 0%, #2B5589 100%);
  box-shadow: 0 6px 18px rgba(11, 42, 74, 0.35);
  transform: translateY(-1px);
}

.login-submit:hover svg { transform: translateX(3px); }

.login-submit:active { transform: translateY(0); }

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-submit-loading .login-submit-label::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: loginSpin 0.6s linear infinite;
  vertical-align: -3px;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

.login-card-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #F0F0F0;
}

.login-security-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #047857;
  font-weight: 500;
  margin-bottom: 8px;
}

.login-security-row svg { width: 13px; height: 13px; }

.login-help {
  font-size: 11.5px;
  color: #9CA3AF;
  line-height: 1.4;
}

.login-bottombar {
  margin-top: 22px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  letter-spacing: 0.2px;
}

.login-bottombar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.login-bottombar a:hover { color: white; }
.login-dot { margin: 0 6px; opacity: 0.5; }
