:root {
  --primary-color: #a822dd;
  --secondary-color: #7b21af;
  --light-color: #f8f9fa;
  --text-color: #212529;
}

/* un reset de tamaños*/
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #a822dd, #81b9f1, #b65198, #10f11b);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.register-container {
  padding: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 500px;
}

h4 {
  color: var(--secondary-color);
  font-weight: bold;
  text-align: center;
}

label {
  font-weight: bold;
  color: var(--text-color);
}

input.form-control {
  border: 1.5px solid #ccc;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

input.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(168, 34, 221, 0.3);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  font-weight: bold;
  border-radius: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

p a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}

/* Responsive para móviles*/
@media (max-width: 576px) {
  .register-card {
    padding: 1rem;
    margin: 0 1rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  label {
    font-size: 0.9rem;
  }

  input.form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Responsive para tablets o portátiles */
@media (min-width: 577px) and (max-width: 1024px) {
  .register-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  h4 {
    font-size: 1.6rem;
  }

  .col-md-6 {
    flex: 0 0 48%;
    max-width: 48%;
  }
}
