@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');
@import url('https://use.fontawesome.com/releases/v5.15.3/css/all.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(to right, #205072, #329D9C);
}

.login-container{
  display: flex;
  width: auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.greeting-column {
  flex: 1;
  background: #56C596;
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-out;
}

.greeting-column h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.forgot_password-box h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color:#56C596;
}

.greeting-column p {
  font-size: 16px;
  margin-bottom: 20px;
}

.login-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-out;
}

.form-box, .forgot_password-box  {
  position: relative;
  width: 350px;
  background: #fff;
  padding: 40px;
}

.login-container.slide .greeting-column {
  transform: translateX(100%);
}

.login-container.slide .login-column {
  transform: translateX(-100%);
}

/* Resto del código CSS... */

.form-box h2 {
  margin: 0 0 20px;
  padding: 0;
  font-size: 22px;
  color: #56C596; /* Azul predominante */
  text-align: center;
}

.centered-container {
  display: flex;
  justify-content: center;
}


.greeting-column img {
  max-width: 150px; /* Tamaño máximo del logotipo */
  margin-bottom: 20px; /* Separación entre el logotipo y los campos de entrada */
}

.user-box {
  position: relative;
  margin-bottom: 30px;
}

.registar-box {
  position: relative;

}

.user-box input, .registar-box input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #205072;
  margin-bottom: 30px;
  border: none;
  border-bottom: 2px solid #56C596; 
  outline: none;
  background: transparent;
}

.user-box label, .registar-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: #CFF4D2;
  transition: all 0.3s ease-out;
}

.user-box label i, .registar-box label i {
  margin-right: 10px;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label,
.registar-box input:focus ~ label,
.registar-box input:valid ~ label{
  top: -18px;
  font-size: 12px;
  color: #56C596;
}

button {
  display: inline-block;
  background: #56C596; /* Color azul predominante */
  color: #fff;
  padding: 15px 40px;
  border: 1px solid white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.centered-container button:hover, .forgot_password-box button:hover {
  padding: 15px 40px;
  border: 1px solid #56C596;
  background: white;
  color: #56C596;
}

button:hover {
  padding: 15px 60px;
}

button i {
  margin-right: 10px;
}

.error-message {
  color: #f44336;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

.success-message {
  color: #4CAF50;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

#error-message {
  color: red;
  display: block;
  margin-top: 10px;
}


#olvidad-password, #registrar-empresa{
    margin-top:20px;
}
#olvidad-password a, #registrar-empresa a{
    color:#56C596;
}

.form-box {
  display: none;
}

.active {
  display: block;
}

#toggle-password, #toggle-password-login {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    margin-top:-10px;
    color:#56C596;
}

@media (max-width: 720px) {
     body {
        font-size: 10px;
    }
    
      .login-container {
        max-width: 100%;
        overflow-x: scroll;
     }
  
    .form-box {
      position: relative;
      width: auto;
      background: #fff;
      padding: 10px;
    }
    
    h2{
     font-size: 10px;   
    }
    
    .greeting-column, .form-box{
      padding: 10px;
    }
    
    button {
      padding: 15px 30px;
    }
    
    button:hover {
      padding: 15px 35px;
    }
}

.modal-success, .modal-error {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    color:#56C586;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#titulo-modal-error{
    color:red;
}

#titulo-modal-success, #titulo-modal-error {
  text-align: center;
}

#modal-message-success, #modal-message-error{
    margin-top:30px;
    margin-bottom:30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.password-message{
    margin-top:-20px;
    margin-bottom:20px;
}

.invalid{
    color:red;
}

.valid{
    color:#56C596;    
}

/* Estilos para el modal spinner */
.modal-spinner {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #56C596;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#error-message-login{
    margin-top:-20px;
    margin-bottom:20px;
}



