/*-----------------------------------------------------------------
Tela de login — TEDD Gestão de Frotas
Paleta da marca: azul #0066FF · verde-limão #C6FF00 · navy de fundo
-----------------------------------------------------------------*/
:root {
  --tedd-blue: #0066ff;
  --tedd-lime: #c6ff00;
  --tedd-lime-hover: #d4ff3a;
  --navy-900: #0a0e2c;
  --navy-700: #121a4a;
  --ink: #0a0e2c;
  --text-light: #eaf0ff;
  --text-muted: #9aa1b8;
}

html, body {
  margin: 0;
}

.login-page {
  min-height: 100vh;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-light);
  /* Fundo oficial da marca (PNG); navy como fallback se a imagem não carregar */
  background: var(--navy-900) url('../img/login-fundo.png') center center / cover no-repeat;
  overflow-x: hidden;
}

/* Estrutura: marca à esquerda + card à direita */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 8vw, 7rem);
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
}

/* Logo */
.login-brand {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
}

.login-logo {
  width: clamp(220px, 30vw, 420px);
  height: auto;
  aspect-ratio: 289 / 113;
  display: block;
}

/* Card de vidro */
.login-card {
  flex: 0 1 460px;
  width: 100%;
  max-width: 460px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3.5vw, 2.75rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-form {
  width: 100%;
  margin: 0;
}

.login-title {
  margin: 0 0 2rem;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--text-light);
}

/* Campos em formato pill (branco) com caixa de ícone limão */
.field {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s ease;
}

.field:focus-within {
  box-shadow: 0 0 0 3px rgba(198, 255, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.18);
}

.field-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tedd-lime);
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.field .form-control {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  color: #1b2240;
}

.field .form-control:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.field .form-control::placeholder {
  color: var(--text-muted);
}

.field-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.field-toggle:hover {
  color: #5a6178;
}

/* Botão ENTRAR */
.login-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.btn-entrar {
  min-width: 210px;
  padding: 0.8rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--tedd-lime);
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(198, 255, 0, 0.18);
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-entrar:hover {
  color: var(--ink);
  background: var(--tedd-lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(198, 255, 0, 0.28);
}

.btn-entrar:active {
  transform: translateY(0);
}

.btn-entrar:disabled {
  opacity: 0.7;
}

/* Mensagem de retorno (o JS reescreve className, então o espaçamento vem por id) */
#responseMessage {
  margin-top: 1.25rem;
}

/* Empilha logo sobre o card em telas estreitas */
@media (max-width: 860px) {
  .login-shell {
    flex-direction: column;
    gap: 2.5rem;
  }

  .login-logo {
    width: clamp(180px, 60vw, 280px);
  }

  .login-card {
    flex-basis: auto;
  }
}
