body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    background: url('/IMG/charlesdeluvio-Lks7vei-eAg-unsplash.jpg') no-repeat center center fixed;
    background-size: cover;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
    margin-top: 80px;
    padding-top: 60px;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #08001f;
    padding: 1px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar img {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInFromRight 1s forwards;
    max-width: 110px;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    min-height: 100vh;
    margin-bottom: 150px;
    padding-bottom: 100px;
}

.login-form {
    background-color: rgba(5, 0, 28, 0.93);
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 380px;
    animation: slideIn 0.6s ease-out;
}

.logo-container {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.5s ease;
}

.logo-container:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.5);
}

.titulo-login {
    color: white;
    font-size: 14px;
    position: relative;
    top: 20px;
    margin-bottom: 40px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
    height: 50px;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.password-group {
    position: relative;
}

#togglePassword {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.error-message-popup {
    display: block;
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.error-message-popup.fade-out {
    opacity: 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #08001f;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

footer .social-icons {
    margin-bottom: 10px;
}

footer .social-icons a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 20px;
}

footer .social-icons a:hover {
    color: #3498db;
}

.additional-content {
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Agregar el diseño hexagonal */
.hexagon {
    width: 200px;
    height: 115.5px;
    background-color: rgba(17, 0, 58, 0.96);
    position: relative;
    margin: 50px auto;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 1.2s ease;
}

/* Desplazamiento desde diferentes lados */
.hexagon-left {
    transform: translateX(-100%);
}

.hexagon-right {
    transform: translateX(100%);
}

.hexagon-top {
    transform: translateY(-100%);
}

.hexagon-bottom {
    transform: translateY(100%);
}

.hexagon.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}
