/* =========================
   RESET + BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #0f0f0f 0%,
    #1f1f1f 40%,
    #f97316 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* =========================
   BACKGROUND TEXT (IDENTITY)
========================= */
body::before {
  content: "LABORATÓRIO DE ANÁLISES";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.596);
  text-transform: uppercase;
  font-weight: 600;
}

body::after {
  content: "Rastreabilidade • Precisão • Ciência";
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.682);
}

/* =========================
   LOGIN CARD
========================= */
form {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 2.3rem 1.9rem;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s ease-in-out;
}

/* =========================
   BRAND BADGE
========================= */
h2 {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
}

/* =========================
   INPUTS
========================= */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.3rem;
  border-radius: 10px;
  border: 1px solid #000000;
  font-size: 0.95rem;
  background-color: #fafafa;
  transition: all 0.25s ease;
}

input::placeholder {
  color: #000000;
}

input:focus {
  outline: none;
  border-color: #f97316;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

/* =========================
   BUTTON
========================= */
button {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.45);
}

button:active {
  transform: scale(0.97);
}

/* =========================
   ERROR MESSAGE
========================= */
p {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.9rem;
  text-align: center;
  border-left: 4px solid #dc2626;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
  body::before {
    font-size: 1.3rem;
  }

  body::after {
    font-size: 0.95rem;
  }

  form {
    padding: 2.8rem 2.4rem;
  }
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
