@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f6f5f2;
}

.login-container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 1;
}

@keyframes glow {
  0% { box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 0 1px rgba(71, 85, 105, 0.3), 0 0 20px rgba(71, 85, 105, 0.4); }
  50% { box-shadow: 4px 6px 25px rgba(0,0,0,0.15), 0 0 0 2px rgba(71, 85, 105, 0.5), 2px 2px 30px rgba(71, 85, 105, 0.6); }
  100% { box-shadow: -4px 4px 20px rgba(0,0,0,0.1), 0 0 0 1px rgba(71, 85, 105, 0.3), -2px 2px 20px rgba(71, 85, 105, 0.4); }
}

.logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 1.75rem;
  transition: transform 0.3s;
}
.logo:hover {
  transform: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: #475569;
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.2);
}

.login-form button {
  padding: 12px;
  background-color: #292929;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.login-form button:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.login-error {
  color: #e74c3c;
  font-size: 0.9rem;
  display: none;
  text-align: center;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 1.2em;
  user-select: none;
  transition: color 0.3s;
}

.user-icon {
  max-width: 50px;
  margin-bottom: 1rem;
}


/* Mostrar/ocultar senha: ícone de traço igual em todos os aparelhos */
.login-form .password-wrapper input { padding-right: 48px; }
.toggle-senha {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0;
  border-radius: 6px;
  background: transparent !important;
  color: #8a8a8a !important;
  cursor: pointer;
}
.login-form .toggle-senha:hover { color: #262626 !important; transform: translateY(-50%); background: #f3f1ec !important; }
.toggle-senha .olho-fechado { display: none; }
.toggle-senha.visivel .olho-aberto { display: none; }
.toggle-senha.visivel .olho-fechado { display: block; }
.toggle-senha.visivel { color: #A8864F !important; }

/* Celular: cartão com margem, logo menor, campos confortáveis ao toque */
@media (max-width: 600px) {
  .login-page { padding: 24px 16px; align-items: center; }
  .login-container {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 14px;
  }
  .logo { max-width: 170px; margin-bottom: 1.5rem; }
  .login-form { gap: 0.85rem; }
  .login-form input { font-size: 16px; padding: 13px 14px; border-radius: 8px; }
  .login-form button[type="submit"] { padding: 14px; border-radius: 8px; font-size: 16px; }
}

/* Logo do login: recipiente no formato da marca que se enche de petróleo
   (mesma animação do carregamento das páginas, ver SCRIPT/logo-liquido.js) */
.logo-liquido {
  display: block;
  margin: 0 auto 1.75rem;
  aspect-ratio: 800 / 581;
  background: #e4e1db;
  -webkit-mask: url(../IMG/Logo.png) center / contain no-repeat;
          mask: url(../IMG/Logo.png) center / contain no-repeat;
  overflow: hidden;
}
.logo-liquido-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
