:root {
    --white: #ffffff;
    --light-blue: #D6E9FF;
    --primary-blue: #4EA3FF;
    --dark-blue: #0f4c81;
    --medium-blue: #1c6da0;
    --gold: #DAA801;
    --text-color: #222;
}

.logo-header {
    height: 150px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
    padding: 8px;
    border-radius: 8px;
}

.logo-header:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 6px 16px rgba(30, 111, 255, 0.25));
}

body {
    font-family: 'Poppins', 'Franklin Gothic Medium', Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../multimedia/fondo.jpeg') no-repeat;
    background-size: cover;
    background-position: left center;
}

.container {
    display: flex;
    align-items: center;
    gap: 100px;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    background-color: white;
    border-radius: 24px;
    padding: 35px;
    border: 6px solid var(--gold);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.18),
        inset 0 0 0 6px #ffffff;

    animation: floatLogoStrong 3s ease-in-out infinite;
}

@keyframes floatLogoStrong {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-16px) scale(1.03) rotate(-1.5deg);
    }
    50% {
        transform: translateY(-32px) scale(1.06) rotate(1.5deg);
    }
    75% {
        transform: translateY(-16px) scale(1.03) rotate(-1deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.login-section {
    padding: 20px;
}

.login-box {
    position: relative;
    background: linear-gradient(135deg, #D6E9FF, #B8D8FF);
    padding: 50px 45px;
    width: 380px;
    border-radius: 22px;
    border: 4px solid var(--gold);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-6px);
    box-shadow:
        0 26px 50px rgba(0, 0, 0, 0.25);
}

.input-field {
    width: 100%;
    max-width: 300px;
    padding: 15px 16px;
    font-size: 1em;
    color: var(--text-color);
    border-radius: 10px;
    border: 2px solid #333;
    background-color: #fffafa;
    outline: none;
    transition: all 0.25s ease;
}

.input-field:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(78, 163, 255, 0.35);
}

.input-field::placeholder {
    color: #666;
}

.login-button {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 12px;
    border: 3px solid #000;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, var(--primary-blue), var(--dark-blue));
    box-shadow:
        0 8px 0 #000,
        0 12px 20px rgba(0,0,0,0.35);
    transition: all 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(4px);
    box-shadow:
        0 4px 0 #000,
        0 6px 10px rgba(0,0,0,0.35);
}

#mensaje-error {
    width: 100%;
    max-width: 300px;
    background-color: #ffeaea;
    border: 2px solid #cc0000;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
}


@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 50px;
    }

    .logo-image {
        width: 220px;
        height: 220px;
    }

    .login-box {
        width: 90%;
    }
}
