
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-image: url("images/login_fondo.png");
    background-position: center;
    background-size: cover;
    height: 100vh;
}

.formulario {
    width: 400px;
    background: transparent;
    border-radius: 10px;
}

.formulario h1 {
    text-align: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid silver;
}

.formulario form{
    padding: 0 40px;
    box-sizing: border-box;
}

form .username {
    position: relative;
    border-bottom: 2px solid #adadad;
    margin: 30px 0;
}

.username input{
    width: 100%;
    padding: 0 5px;
    height: 40px;
    font-size: 16 px;
    border: none;
    background: none;
    outline: none;
}

.username label {
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}

form .contraseña {
    position: relative;
    border-bottom: 2px solid #adadad;
    margin: 30px 0;
}

.contraseña input{
    width: 100%;
    padding: 0 5px;
    height: 40px;
    font-size: 16 px;
    border: none;
    background: none;
    outline: none;
}

.contraseña label {
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}


.username span::before{
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cb3f1f;
    transition: .5s;
}

.username input:focus ~ label,
.username input:valid ~ label{
    top: -5px;
    color: #cb3f1f;
}

.username input:focus ~ span::before,
.username input:focus ~ span::before {
    width: 100%;
}

.contraseña span::before{
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cb3f1f;
    transition: .5s;
}

.contraseña input:focus ~ label,
.contraseña input:valid ~ label{
    top: -5px;
    color: #cb3f1f;
}

.contraseña input:focus ~ span::before,
.contraseña input:focus ~ span::before {
    width: 100%;
}

.recordar{
    margin: -5px 0 20px 5px;
    color:blue;
    cursor: pointer;
}

.recordar :hover{
    text-decoration: underline;
}

input[type="submit"]{
    width: 100%;
    height: 50px;
    border: 1px solid;
    background: #cb3f1f;
    border-radius: 25px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    outline: none;
}

input[type="submit"]:hover{
    border-color: orange;
    transition: .5s;
}

.recordar {
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
}
.registrarse{
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
    color: black;
}

.registrarse a{
    color:blue;
    text-decoration: none;
}

.registrarse a:hover{
    text-decoration: underline;
}

#logoEmpresa {
  position: absolute;
  top: 20px;
  left: 50%;               /* la empuja hacia la mitad */
  transform: translateX(-50%);  /* la centra perfectamente */
  width: 150px;
  height: auto;
  border-radius: 8px;
  opacity: 0.95;
  transition: all 0.3s ease;
}

#logoEmpresa:hover {
  transform: translateX(-50%) scale(1.05); /* mantiene centrado + efecto */
}

.container-login {
  display: flex;
  height: 100vh;
  width: 100%;
  margin: 0;
}

.left-panel {
  flex: 1;
  background-image: url("images/login_relleno.png");
  background-size: 90%; /* Aquí haces la imagen más pequeña */
  background-repeat: no-repeat;
  background-position: center;
  border-bottom-right-radius: 40px;
}

.right-panel {
  flex: 1;
  position: relative;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(60px); /* 👈 baja todo 40px visualmente */
}

#logoEmpresa {
  width: 160px;
  height: auto;
  margin-bottom: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
