@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    /* Se ajusta la posición del fondo para mostrar la parte superior de la imagen (la cabeza de la persona) */
    background: url("/images/esteban/hablando.jpg") no-repeat top left fixed;
    background-size: cover;
    color: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* --- Main Content Section for Centering Login Form --- */
main {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

/* New styles for the title section on the left */
.content-left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 450px; /* Ajusta este valor para que coincida con el ancho del login-container */
    pointer-events: none;
}

.main-title {
    text-align: center;
    color: #fff;
    pointer-events: all; /* Permite que el texto sea seleccionable dentro del contenedor */
}

.title-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* --- Main Container Styles for Login Form --- */
.login-container {
    background-color: #2a2a2a; /* Fondo gris sólido */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    padding: 40px;
    width: 450px; /* Ancho del recuadro del formulario */
    height: 100vh; /* Ocupa todo el alto de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.login-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.login-container p {
    font-size: 1rem;
    line-height: 20px;
    margin-bottom: 30px;
    color: #ccc;
}

.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #fff;
}

.input-group input {
    background-color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    border-radius: 5px;
    width: 100%;
    outline: none;
    color: #333;
}

.input-group input::placeholder {
    color: #aaa;
}

.login-container button {
    background-color: #b60606;
    color: #fff;
    font-size: 1rem;
    padding: 15px 45px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
}

.help-section {
    margin-top: 30px;
    text-align: center;
}

.help-section p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

.password-help-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.password-help-link:hover {
    color: #b60606;
}

.password-help-link i {
    margin-right: 5px;
}

/* Navbar Styles */
.navbar {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.brand-logo-link {
    display: flex;
    height: 100%;
}

.brand-logo {
    height: 40px;
    width: auto;
    max-height: 100%;
    vertical-align: middle;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 0;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #1a1a1a;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .title-text {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    main {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        text-align: center;
    }
    
    .content-left {
        position: relative;
        right: auto;
        margin-bottom: 40px;
    }

    .title-subtitle {
        font-size: 1.2rem;
    }

    .title-text {
        font-size: 3rem;
    }

    .login-container {
        height: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .login-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .title-text {
        font-size: 2.5rem;
    }
    .login-container {
        padding: 30px;
    }
}

/* --- Alert Styles --- */
.alert {
    background-color: #f8d7da; /* Rojo claro */
    color: #721c24;           /* Texto rojo oscuro */
    padding: 15px 20px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.alert .close-btn {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #721c24;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
