﻿

.body-login {
    background: var(--color-gradiente-derecho);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 15px;
}

.libro-contenedor {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-fondo);
    box-shadow: var(--caja-sombra);
    border-radius: 15px !important;
    transition: var(--transicion);
    max-height: 90vh;
}

.libro-pagina {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.libro-left {
    background: linear-gradient(to bottom right, #fefae0, #f4a261); /* Arena a naranja tropical */
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 30px 15px;
    border-radius: 5px;
    box-shadow: var(--caja-sombra);
    transition: var(--transicion);
}

.libro-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--color-rotacion);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.compania-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.compania-info h2 {
    color: var(--color-texto);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    animation: bounceSoft 5s ease-in-out infinite;
}

.compania-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--color-acento);
    border-radius: 2px;
}

.compania-info p {
    color: var(--color-texto);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
    animation: slideInLoop 10s ease-in-out infinite;
}

.company-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--color-sombra);
    border: 2px solid var(--gold-color);
    animation: float 4s ease-in-out infinite;
}

.libro-derecho {
    background: linear-gradient(to bottom right, #1b2a41); /* Azul noche a verde oliva */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
    color: #ffffff;
    box-shadow: var(--caja-sombra);
    transition: var(--transicion);
}


.login-form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.login-form h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.login-form h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-acento);
    border-radius: 2px;
}

.login-form hr {
    margin: 20px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 1rem;
    color: var(--color-fondo);
}

.form-control {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-fondo); /* borde base visible */
    border-radius: 0;
    padding: 10px 5px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #ffd800;
    box-shadow: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.form-control:focus,
.form-control:hover {
    border-bottom: 2px solid var(--color-input-focus); /* azul cielo moderno */
    outline: none;
    transform: scale(1.02);
}
.form-control::placeholder {
    color: var(--color-acento);
    font-weight: 500;
    opacity: 1;
}

.text-center a {
    color: var(--color-acento);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    transition: var(--transicion);
}

    .text-center a:hover {
        color: var(--color-link-hover);
    }

/* Responsive */
@media (min-width: 768px) {
    .libro-contenedor {
        flex-direction: row;
        max-height: 600px;
    }

    .compania-info h2 {
        font-size: 2rem;
    }
}

/* Animaciones */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounceSoft {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideInLoop {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    20% {
        transform: translateX(0);
        opacity: 1;
    }

    80% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-20px);
        opacity: 0;
    }
}

.boton-login {
    color: #f4f4f4;
    background: var(--color-acento);
    border: solid var(--gold-color) 3px;
    text-align: center;
    font-weight: 500;
}

.boton-login:hover {
    background: var(--gold-color);
    border: solid var(--color-acento) 3px;
    color: #212121;
    cursor:pointer;
}
