/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  min-height: 100vh;
  display: flex;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  background-image: url('/painel/LOGIN/img/_.jpeg');
  background-size: cover;
  background-position: center center;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom right,
    rgba(179,207,229,0.70) 0%,
    rgba(74,127,167,0.75) 25%,
    rgba(26,61,99,0.85) 55%,
    #0A1931 80%,
    #0A1931 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 280px;
  padding: 48px 120px;
}

/* ===== HERO TEXT (ESQUERDA) ===== */
.center-text {
  flex: 1;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(10, 22, 48, 0.85);
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 10px rgba(10,25,49,0.6);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(10, 22, 48, 0.85);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 6.5vw, 100px);
  font-weight: 300;
  line-height: 1.0;
  color: #F6FAFD;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(10,25,49,0.8);
}

.hero-title em {
  color: #B3CFE5;
  font-style: italic;
  text-shadow: 0 0 30px rgba(179,207,229,0.4);
  position: relative;
  display: inline-block;
}

.hero-title em::before {
  content: '';
  position: absolute;
  inset: -6px -18px;
  background: rgba(10, 22, 48, 0.58);
  border-radius: 16px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: slideInBox 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.hero-desc {
  font-size: 16px;
  color: rgba(246,250,253,0.78);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 380px;
  text-shadow: 0 1px 12px rgba(10,25,49,0.7);
}

/* ===== STATS ===== */
.stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B3CFE5;
  box-shadow: 0 0 10px rgba(179,207,229,0.9);
  flex-shrink: 0;
}

.stat-label {
  font-size: 17px;
  color: rgba(246,250,253,0.72);
  text-shadow: 0 1px 8px rgba(10,25,49,0.8);
}

/* ===== CARD DE LOGIN (DIREITA) ===== */
.login-card-wrapper {
  position: relative;
  flex-shrink: 0;
}

.blur-halo {
  position: absolute;
  inset: -260px;
  border-radius: 50px;
  backdrop-filter: blur(10px) brightness(0.72);
  -webkit-backdrop-filter: blur(10px) brightness(0.72);
  -webkit-mask-image: radial-gradient(ellipse at center, black 28%, transparent 65%);
  mask-image: radial-gradient(ellipse at center, black 28%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.login-card {
  width: 500px;
  background: rgba(10, 22, 48, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 32px;
  padding: 52px 60px;
  border: 1px solid rgba(179, 207, 229, 0.38);
  box-shadow:
    0 0 0 1px rgba(74, 127, 167, 0.22),
    0 0 24px rgba(74, 127, 167, 0.18),
    0 0 70px rgba(74, 127, 167, 0.10);
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

/* ===== LOGO NO CARD - TAMANHO IDEAL ===== */
.card-logo {
  margin-left: -40px;
  margin-top: -115px;
  margin-bottom: -80px; /* REDUZIDO de 15px para 5px */
  filter: drop-shadow(0 0 15px rgba(74,127,167,0.6));
  line-height: 0; /* Remove espaço extra */
}

.login-logo {
  height: auto; /* TAMANHO IDEAL */
  width: 200px;
  display: block;
}

.card-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A7FA7;
  margin-bottom: 15px; /* REDUZIDO de 30px para 15px */
  line-height: 1.2;
}


/* ===== TÍTULOS COM TAMANHOS AJUSTADOS ===== */
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: #F6FAFD;
  line-height: 1.2;
  margin-bottom: 15px;
  margin-top: 0; /* Garante que não haja espaço extra no topo */
}
.welcome-big {
  font-size: 4.5rem;
  line-height: 1.1;
}

.welcome-small {
  font-size: 2.6rem;
  display: block;
  line-height: 1.1;
  color: #B3CFE5;
  margin-top: 0px;
  font-family: 'DM Sans', sans-serif;
}

.card-sub {
  font-size: 16px; /* AUMENTADO */
  color: rgba(179,207,229,0.55);
  margin-bottom: 35px;
}

/* ===== FORMULÁRIO ===== */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B3CFE5;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 17px 20px;
  background: rgba(179,207,229,0.07);
  border: 1px solid rgba(179,207,229,0.22);
  border-radius: 14px;
  font-size: 17px;
  color: #F6FAFD;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: rgba(179,207,229,0.27);
}

.form-input:focus {
  border-color: rgba(74,127,167,0.65);
  background: rgba(74,127,167,0.09);
  box-shadow: 0 0 0 3px rgba(74,127,167,0.12);
}

/* ===== BOTÃO ===== */
.btn-login {
  width: 100%;
  padding: 19px;
  background: linear-gradient(135deg, #1A3D63, #4A7FA7);
  color: #F6FAFD;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
  margin-bottom: 24px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74,127,167,0.38);
  filter: brightness(1.1);
}

/* ===== FOOTER ===== */
.card-footer {
  text-align: center;
  font-size: 11px;
  color: transparent;
  background: linear-gradient(90deg, #4A7FA7, rgba(74,127,167,0.3));
  -webkit-background-clip: text;
  background-clip: text;
  padding-top: 18px;
  position: relative;
  letter-spacing: 0.03em;
}

.card-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(74,127,167,0.7), rgba(74,127,167,0.05));
}

/* ===== MENSAGEM DE ERRO ===== */
.erro-msg {
  background: rgba(239,108,108,0.1);
  border: 1px solid rgba(239,108,108,0.25);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #e57373;
  margin-bottom: 18px;
  display: none;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBox {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}