/* 1) Fondo y layout general */
body {
    background-color: black;
    background-image: url('../../assets/img/pexels-pixabay-159400.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 2) Contenedor principal */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3) Tarjeta de login */
.login-container {
    opacity: 0;
    background: var(--bg-light);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    animation: fadeInForm 0.3s ease-in 3s forwards;
    transition: opacity 0.5s ease, visibility 0.3s ease;
}

/* 4) Secuencia de logo inicial */
.logo-container {
    position: absolute;
    text-align: center;
    animation: logoSequence 2.7s ease-in-out forwards;
}

/* 5) Logotipo grande */
.logo-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    object-fit: contain;
}

/* 6) Logotipo pequeño */
.login-logo-image {
    width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* 7) Texto MEDIA */
.media-text {
    color: gray;
    font-size: 20px;
    text-align: center;
    letter-spacing: 10px;
    margin-top: 5px;
}

/* 8) Encabezado del login */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* 9) Grupos del formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

/* 10) Campos de entrada */
input[type="text"],
input[type="password"] {
    width: calc(100% - 2.4rem);
    max-width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 11) Estado de enfoque */
input:focus {
    outline: none;
    border-color: #eb4b16;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* 12) Texto de ayuda */
.help-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.85rem;
}

/* 13) Responsive móvil */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .btn-login {
        width: 100%;
        height: 50px;
        font-size: 15px;
    }
}
