* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url('../images/fondologin.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Calibri', sans-serif;
  position: relative;
}

.form-register {
  text-align: center;
  width: 90%;
  max-width: 400px;
  background: #d7d9dc;
  padding: 30px;
  margin: 20px;
  border-radius: 4px;
  box-shadow: 7px 13px 37px #000;
}

.form-register h4 {
  font-size: 22px;
  margin-bottom: 20px;
}

.label-control {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-size: 16px;
  color: #000;
  font-weight: bold;
}

.controls {
  width: 100%;
  background: #e5e7e9;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  border: 1px solid #1631b9;
  font-size: 18px;
  color: rgb(0, 0, 0);
}

.form-register p {
  height: 40px;
  text-align: center;
  font-size: 18px;
  line-height: 40px;
}

.form-register a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.form-register a:hover {
  color: #1f53c5;
  text-decoration: underline;
}

.form-register .botons {
  width: 100%;
  background: #1f53c5;
  border: none;
  padding: 12px;
  color: white;
  margin: 16px 0;
  font-size: 16px;
  cursor: pointer;
  border-radius: 2px;
}

/* Botón de regresar */
.back-button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #058D33;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #ce0b0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-register {
    padding: 20px;
  }

  .form-register h4 {
    font-size: 20px;
  }

  .controls {
    font-size: 16px;
  }

  .form-register p {
    font-size: 16px;
  }

  .form-register .botons {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .form-register {
    padding: 15px;
  }

  .form-register h4 {
    font-size: 18px;
  }

  .controls {
    font-size: 14px;
  }

  .form-register p {
    font-size: 14px;
  }

  .form-register .botons {
    font-size: 12px;
  }
}
