/* Estilos base */
body {
  font-family: 'Nunito', sans-serif;
  background: url('../images/baground-auth.png') no-repeat center center fixed;
  background-size: cover;
  background-color: #1a1a26;
  color: #f0f6fc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  position: relative;
}

.auth-container {
  background: #1a1a26; 
  border: 2px solid #272727;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  max-width: 400px; /* Ajustado para que no se vea enorme */
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.logo-img {
  width: 280px; /* ajusta el tamaño a gusto */
  height: auto;
  display: block;
  margin: 0 auto 10px; /* centrado y separación */
}


h2 {
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: none;
}

/* Alineación de campos de texto */
.input-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: #ccc;
  font-size: 1rem;
  padding-left: 2px;
}

.input-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 2px solid #30363d;
  border-radius: 14px;
  font-size: 1rem;
  background: #0d1117;
  color: #f0f6fc;
  outline: none;
  transition: border-color 0.3s ease;
  margin: 0;
}

.input-group input:focus {
  border-color: #2f5675;
}

.error-message {
  font-size: 0.85rem;
  color: #ff6b6b;
  margin-top: 4px;
  display: block;
  text-align: left;
  padding-left: 2px;
}

/* Botones */
.btn {
  padding: 9px 152px;
  border-radius: 8px;
  border: 2px solid #2f5675;
  width: max-content;
  cursor: pointer;
  font-size: 19px;
  text-decoration: none;
  color: #f1f1f1;
  background: linear-gradient(95.25deg, #1b1e2c -25.47%, #1c2438 2.62%, #213f67 114.98%);
  transition: all 0.4s ease;
  animation-delay: 0.6s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(95.25deg, #1b1e2c -25.47%, #1c2438 2.62%, #213f67 114.98%);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 16px;
  border: 2px solid #2f5675;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: none;
  margin-top: 0.5rem;
}


.btn:hover {
  box-shadow: 0 10px 25px rgba(33, 63, 103, 0.5);
  border-color: #4a8bba;
}

/* Texto alternativo de login/registro */
.auth-switch {
  margin-top: 1.2rem;
  font-size: 1rem;
  text-align: center;
}

.auth-switch a {
  color: #4a8bba;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #7d8590;
}

.auth-footer a {
  color: #4a8bba;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 500px) {
  .auth-container {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
}

.form-actions {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.auth-link {
  color: #4a8bba;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.forgot-link {
  color: #4a8bba;
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 40px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #aaa; transition: color 0.3s ease; }
.toggle-password:hover { color: #ffd700; }
.error-message { font-size: 0.85rem; color: #ff6b6b; margin-top: 4px; display: block; text-align: left; padding-left: 2px; }

/* Texto y checkbox de aceptación */
.terms-accept {
  display: flex;
  -items: center;
  font-size: 0.9rem;
  color: #ccc;
  gap: 6px; /* espacio entre checkbox y texto */
  flex-wrap: wrap; /* para que no se rompa en móviles */
}

.terms-accept input[type="checkbox"] {
  accent-color: #00ba5d;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-accept a {
  color: #4a8bba;
  text-decoration: none;
  font-weight: 600;
}

.terms-accept a:hover {
  text-decoration: underline;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 40px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #aaa; transition: color 0.3s ease; }
.toggle-password:hover { color: #4a8bba; }
.error-message { font-size: 0.85rem; color: #ff6b6b; margin-top: 4px; display: block; text-align: left; padding-left: 2px; }