/* ===============================
   Login – Benel Solução
   assets/css/login.css
   =============================== */

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg-dark: #0f172a;         /* fundo escuro */
  --card-bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --primary: #0e067d;         /* cor primária */
  --primary-700: #3212a5;
  --ring: #94a3b8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .18);
  --maxw: 420px;
  --field-h: 46px;
  --gap: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

html, body { height: 100%; }
body{
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-dark);   /* fundo simples */
  display: grid;
  place-items: center;
  padding: 28px;
}

/* ---------- Cartão de login ---------- */
.login-container{
  width: 100%;
  max-width: var(--maxw);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

/* Logo dentro do card */
.login-container .logo{
  display: block;
  height: 35px;   /* <<< tamanho do logo */
  margin: 0 auto 20px;
  object-fit: contain;
}

/* Título */
.login-container h2{
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: .2px;
}

/* Formulário */
#loginForm{ display: grid; gap: var(--gap); text-align: left; }

#loginForm label{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: inline-block;
}

/* Campos */
#loginForm input[type="email"],
#loginForm input[type="password"]{
  width: 100%;
  height: var(--field-h);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}

#loginForm input::placeholder{ color: #9aa3b2; }

/* Foco */
#loginForm input:focus{
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(148,163,184,.25);
}

/* Botão */
button[type="submit"]{
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: filter .2s ease, transform .05s ease;
  box-shadow: 0 8px 18px rgba(14,6,125,.25);
}

button[type="submit"]:hover{ filter: brightness(.95); }
button[type="submit"]:active{ transform: translateY(1px); }
button[type="submit"]:disabled{
  opacity: .6; cursor: not-allowed; box-shadow: none;
}

/* Mensagens */
#loginMessage{
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}
#loginMessage.error{ color: #dc2626; }
#loginMessage.success{ color: #059669; }

/* Links extras */
.login-actions{
  margin-top: 12px;
  display: flex; justify-content: space-between; gap: 10px;
}
.login-actions a{
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}
.login-actions a:hover{ text-decoration: underline; }

/* ---------- Seleção ---------- */
::selection{ background: #e0e7ff; color: var(--text); }
