* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617 url("../img/bg-login.jpg") center/cover no-repeat fixed;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: -1;
}

.login-wrapper {
  width: 100%;
  max-width: 380px;
  padding: 16px;
}

.login-card {
  background: rgba(181, 187, 201, 0.95);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #000000;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background-color: #020617;
  color: #f9fafb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.login-button {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
}

.login-button:disabled {
  opacity: 0.65;
  cursor: default;
  filter: grayscale(0.3);
}

.login-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4);
  filter: brightness(1.05);
}

.login-status {
  margin-top: 10px;
  font-size: 0.8rem;
  min-height: 16px;
}

.login-status.error {
  color: #fca5a5;
}

.login-status.success {
  color: #bbf7d0;
}

.login-logo {
  width: 100%;
  max-width: 180px;      /* tamanho máximo permitido */
  height: auto;          /* mantém proporção */
  margin: 0 auto 10px;   /* centraliza */
  display: block;
  object-fit: contain;   /* garante que a imagem nunca estoure */
}
