body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #2C3E50;
    background-image: url("../images/fondo.png"); /* <-- tu PNG de la nube */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1000px; /* <<--- aquí aumentamos el tamaño */
  }

  .login-box {
    background: #34495E;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align: center;
    width: 400px;
    border: 1px solid #3d566e;
    position: relative;
    z-index: 1;
  }

  .login-box h1,
  .login-box h2, 
  .login-box h3, 
  .login-box p{
    margin-bottom: 20px;
    color: #fff;
  }

  .login-box input {
    padding: 12px 0 12px 12px;    
    border: none;
    border-radius: 6px;
    background: #2C3E50;
    font-size: 14px;
    color: #fff;
  }

  .login-box input::placeholder {
    color: #ccc;
  }

  .login-box button,
  .btn-primary {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #F9B226;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
  }

 .btn-primary:hover {
    background: #d89a1f !important;
  }

  .login-box a {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #ddd;
    text-decoration: none;
  }

  .login-box a:hover {
    text-decoration: underline;
  }


/* 1. Ajusta ancho uniforme para inputs y botón */
.custom-form .form-control,
.custom-form button {
    width: 100%;           /* mismo ancho */
    max-width: 320px;      /* ajusta el máximo según tu diseño */
    box-sizing: border-box;
    margin: 0 auto 15px;   /* centrado + espacio inferior */
}

/* 2. Contenedor de password + icono en una línea */
.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 15px;

}

/* 3. Input de password ocupa todo el contenedor */
.password-wrapper input.form-control {
    width: 100%;
    padding-right: 2.5rem; /* deja espacio para el icono */
    /*box-sizing: border-box;*/
}

/* 4. Icono del ojo dentro del campo, alineado a la derecha */
.password-wrapper .password-icon {
   position: absolute;
    right: 0.8rem;          /* distancia del borde derecho */
    top: 39%;               /* mitad de la altura del contenedor */
    transform: translateY(-50%); /* corrige el centrado vertical */
    cursor: pointer;
    color: #666;
}
.password-wrapper .password-icon:hover {
    color: #000;
}

.alert-danger {
  color: #721c24 !important;
  background-color: #f8d7da;
  border-color: #f5c6cb !important;
}
.alert {
  position: relative;
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: .25rem;
}

input#user { 
  -webkit-box-shadow: 0 0 0px 1000px #E8F0FE inset !important;
  -webkit-text-fill-color: #000 !important;
}

div#resend-link {
    margin-bottom: 1.2em;
}

div#repeat-password-wrapper {
    margin-top: -10px;
}