* {
  box-sizing: border-box;
}

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

.register-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 institucional */
.register-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;
}

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

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

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

/* Lado direito - formulário */
.register-form {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.register-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) {
  .register-wrapper {
    flex-direction: column;
    max-width: 500px;
  }

  .register-info {
    display: none;
  }

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