/* Tela de login – wallpaper de fundo */

.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-backdrop {
  position: fixed;
  inset: 0;
  background-image: url('../images/wallpaper-login.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.login-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.login-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.login-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
}

.login-subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: #4a4a5a;
  text-align: center;
}

.login-errors {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.btn-login {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-login:hover {
  background: #6d28d9;
}

.login-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.login-links a {
  font-size: 0.9rem;
  color: #7c3aed;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}
