@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Arial", sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

header {
  background: #4a6baf;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
}

.back-button {
  color: white;
  font-size: 22px;
  text-decoration: none;
  margin-right: 12px;
  font-weight: bold;
}

h1 {
  margin: 0;
  font-size: 20px;
}

form {
  padding: 25px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  background: #f9f9f9;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #4a6baf;
  background: #f0f0f0;
  box-shadow: 0 0 5px rgba(74, 107, 175, 0.3);
}

.submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: #4a6baf;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  margin-top: 10px;
}

.submit:hover {
  background: #3a5a9f;
}

form p {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

form p a {
  color: #4a6baf;
  text-decoration: none;
  font-weight: bold;
}

form p a:hover {
  text-decoration: underline;
}

/* Estilos para mensajes de error (pueden ser añadidos dinámicamente) */
.error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: -15px;
  margin-bottom: 15px;
  display: none;
}

.password-strength {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-top: -0.5rem;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.weak {
  background-color: #ef4444;
  width: 33%;
}

.medium {
  background-color: #f59e0b;
  width: 66%;
}

.strong {
  background-color: #10b981;
  width: 100%;
}

.input-group {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    border-radius: 5px;
  }

  header {
    padding: 12px;
  }

  h1 {
    font-size: 18px;
  }

  form {
    padding: 15px;
  }

  label {
    font-size: 15px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"] {
    padding: 10px;
  }
}
