* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  background: linear-gradient(160deg, #ffffff, #f3f3f3, #ebebeb);
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LADO ESQUERDO */
.login-info {
  flex: 1;
  background: linear-gradient(135deg, #d4002a, #a80020);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  text-align: center;
}

.login-info img {
  width: 120px;
  height: 120px;
  margin-bottom: 1.2rem;
}

.login-info h1 {
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.login-info p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 300px;
  opacity: 0.9;
}

/* LADO DIREITO */
.login-form {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form h2 {
  color: #d4002a;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #444;
}

input {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #d4002a;
  background: #fff8f8;
  outline: none;
  box-shadow: 0 0 5px rgba(212, 0, 42, 0.3);
}

button {
  padding: 14px;
  background: linear-gradient(135deg, #d4002a, #a80020);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(212, 0, 42, 0.2);
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #ff1a4d, #b80024);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 0, 42, 0.25);
}

.extra-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.extra-links a {
  color: #d4002a;
  text-decoration: none;
  font-weight: 600;
}

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

.error-msg {
  text-align: center;
  color: #d4002a;
  background: #fff0f3;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.error-msg.active {
  display: block;
}

@media (max-width: 900px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 500px;
  }

  .login-info {
    display: none;
  }

  .login-form {
    padding: 2.5rem 2rem;
  }
}

/* POP-UP DE CONFIRMAÇÃO */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#popup-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 90%;
  animation: slideUp 0.4s ease;
}

#popup-box h3 {
  margin-top: 0;
  color: #d4002a;
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

#popup-box p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1rem;
}

#popup-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

#popup-box li {
  color: #333;
  font-size: 0.95rem;
  margin: 0.3rem 0;
  background: #fff8f8;
  border: 1px solid #f0b3b3;
  border-radius: 8px;
  padding: 8px;
}

#popup-ok {
  background: linear-gradient(135deg, #d4002a, #a80020);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#popup-ok:hover {
  background: linear-gradient(135deg, #ff1a4d, #b80024);
  transform: translateY(-2px);
}

@keyframes slideUp {
  from {
    transform: translateY(25px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#popup-overlay.active {
  visibility: visible;
  opacity: 1;
}
