

:root {
  --dark-blue: #0d1b2a;
  --light-gray: #f3f3f3;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body, html {
  height: 100%;
}

.container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.panel, .form-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  transition: all 0.8s ease;
}

.panel {
  background-color: var(--dark-blue);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 0 50% 50% 0 / 0 50% 50% 0;
}

.panel h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.panel p {
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 300px;
  text-align: center;
}

.panel button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.panel button:hover {
  background: white;
  color: var(--dark-blue);
}

.form-container {
  background-color: transparent;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-box {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  .form-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-blue);
    text-align: center;
    font-weight: 600;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
  }
  
  .input-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  
  .input-group input {
    padding: 12px 15px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  .input-group input:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1);
  }
  
  .alerta-error,
  .invalid-feedback {
    background-color: #ffe5e5;
    color: #c0392b;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
  }
  
  .alerta-error ul {
    list-style: none;
    padding-left: 0;
  }
  
  .form-box button {
    background: var(--dark-blue);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s ease;
    margin-top: 10px;
  }
  
  .form-box button:hover {
    background: #132c46;
  }
  

.icon-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.icon-container i {
  font-size: 30px;
  transition: transform 0.3s ease;
}

.icon-container i:hover {
  transform: scale(1.2);
}

.register-form, .login-form {
  display: none;
}

.form-container.show-login .login-form {
  display: block;
}

.form-container.show-register .register-form {
  display: block;
}

.container.active .panel {
  left: 50%;
  border-radius: 50% 0 0 50% / 50% 0 0 50%;
}

.container.active .form-container {
  left: 0;
}

.container:not(.active) .panel {
  left: 0;
  border-radius: 0 50% 50% 0 / 0 50% 50% 0;
}

.container:not(.active) .form-container {
  left: 50%;
}

@media (max-width: 768px) {
  .panel {
    display: none;
  }

  .form-container {
    width: 100% !important;
    left: 0 !important;
  }
}
.home-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    color: white;
    background-color: var(--dark-blue);
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  }
  
  .home-arrow:hover {
    background-color: white;
    color: black;
    transform: scale(1.1);
  }
  