/* Tela de login — layout split NZ Tech */
.login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0f1419;
  color: #e2e8f0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.login-split {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 992px) {
  .login-split {
    flex-direction: row;
  }
}

/* Painel visual (ilustração) */
.login-split__visual {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(145deg, #0f1419 0%, #15202b 45%, #0d1f2d 100%);
  position: relative;
  overflow: hidden;
}

.login-split__visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.12) 0%, transparent 70%);
  top: -80px;
  right: -100px;
  pointer-events: none;
}

.login-split__visual::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 74, 153, 0.2) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
  pointer-events: none;
}

.login-split__headline {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.login-split__headline h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: #a3e635;
}

.login-split__headline p {
  margin: 0;
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 500;
}

.login-split__illustration {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.login-split__illustration img,
.login-split__illustration svg {
  width: 100%;
  max-height: 340px;
  height: auto;
  object-fit: contain;
}

/* Painel do formulário */
.login-split__form {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #12181f;
}

.login-panel {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.75rem 2.25rem;
  background: #1a222c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.login-panel__brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-panel__brand img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.65rem;
}

.login-panel__brand .login-panel__system {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.login-panel__title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #84cc16;
  text-align: center;
  margin: 0 0 1.5rem;
}

.login-panel .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.login-field {
  margin-bottom: 1.1rem;
}

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

.login-input-field .login-input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}

.login-input-field .form-control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem 0.65rem 2.75rem;
  background: #0f1419;
  border: 1px solid #2d3748;
  border-radius: 0.65rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.login-input-field .form-control::placeholder {
  color: #475569;
}

.login-input-field .form-control:focus {
  background: #0f1419;
  border-color: #84cc16;
  color: #f1f5f9;
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
}

.login-illustration-svg {
  display: block;
  width: 100%;
  max-height: 340px;
  height: auto;
}

.login-panel__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1419;
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
  border: none;
  border-radius: 0.65rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-panel__submit:hover {
  color: #0f1419;
  background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
  box-shadow: 0 8px 24px rgba(132, 204, 22, 0.35);
  transform: translateY(-1px);
}

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

.login-panel__error {
  font-size: 0.875rem;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .login-split__visual {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .login-split__illustration {
    min-height: 180px;
    max-height: 220px;
  }

  .login-split__illustration img,
  .login-split__illustration svg {
    max-height: 200px;
  }
}
